/* Password Generator Styles */

/* Card styles */
.config-card, .results-card, .info-card {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.config-card:hover, .results-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

/* Button styles */
.generate-btn {
    border-radius: 30px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.generate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add a subtle animation effect to buttons */
.generate-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.generate-btn:focus::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Copy button styles */
.copy-btn {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.copy-btn:hover {
    background-color: #6c757d;
    color: white;
}

/* Form control styles */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Range slider styles */
.form-range {
    width: 100%;
    height: 1.5rem;
    padding: 0;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-range:focus {
    outline: none;
}

.form-range::-webkit-slider-thumb {
    width: 1rem;
    height: 1rem;
    margin-top: -0.25rem;
    background-color: #0d6efd;
    border: 0;
    border-radius: 1rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    background-color: #0d6efd;
    border: 0;
    border-radius: 1rem;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Password display styles */
#generatedPassword {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background-color: #f8f9fa;
}

/* Password strength indicator */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Password strength colors */
.strength-very-weak { background-color: #dc3545; }
.strength-weak { background-color: #fd7e14; }
.strength-medium { background-color: #ffc107; }
.strength-strong { background-color: #20c997; }
.strength-very-strong { background-color: #198754; }

/* Password history styles */
.password-history {
    max-height: 200px;
    overflow-y: auto;
}

.list-group-item {
    padding: 0.5rem 1rem;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-group-item .copy-history-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.list-group-item:hover .copy-history-btn {
    opacity: 1;
}

/* Visual feedback for successful password generation */
.password-success {
    animation: highlight 1s;
}

@keyframes highlight {
    0% {
        background-color: rgba(40, 167, 69, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Info section styles */
.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    background-color: #28a745;
}

.notification-error {
    background-color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .config-card, .results-card {
        margin-bottom: 30px;
    }

    .generate-btn {
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .card-header {
        padding: 12px 15px;
    }

    .card-body {
        padding: 15px;
    }

    .generate-btn {
        font-size: 1rem;
        padding: 8px 12px;
    }

    #generatedPassword {
        font-size: 1rem;
    }
}
