/* Password Generator – DozeGear - Main Styles */
.pwdg-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.pwdg-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 107, 255, 0.1),
                0 5px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.pwdg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 107, 255, 0.15),
                0 8px 20px rgba(0, 0, 0, 0.1);
}

.pwdg-header {
    background: linear-gradient(135deg, #006bff, #0099ff);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pwdg-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.pwdg-title i {
    font-size: 2.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.pwdg-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.pwdg-body {
    padding: 40px;
}

/* Password Display */
.pwdg-password-display {
    margin-bottom: 40px;
}

.pwdg-password-field {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 5px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.pwdg-password-field:focus-within {
    border-color: #006bff;
}

#pwdg-generated-password {
    flex: 1;
    padding: 22px 25px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    background: transparent;
    color: #212529;
    font-family: 'Courier New', monospace;
    min-height: 30px;
    outline: none;
}

.pwdg-password-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.pwdg-btn {
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 60px;
}

.pwdg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.pwdg-btn:active {
    transform: translateY(0);
}

.pwdg-btn-primary {
    background: linear-gradient(135deg, #006bff, #0099ff);
    color: white;
    flex: 1;
}

.pwdg-btn-primary:hover {
    background: linear-gradient(135deg, #0059d9, #0088e6);
    box-shadow: 0 10px 20px rgba(0, 107, 255, 0.3);
}

.pwdg-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
    flex: 1;
}

.pwdg-btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #727b84);
}

.pwdg-btn-copy {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 16px 24px;
}

.pwdg-btn-copy:hover {
    background: linear-gradient(135deg, #218838, #1ba87e);
}

.pwdg-btn-refresh {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    padding: 16px;
}

.pwdg-btn-refresh:hover {
    background: linear-gradient(135deg, #e0a800, #e66a13);
}

/* Strength Meter */
.pwdg-strength-meter {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.pwdg-strength-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
}

.pwdg-strength-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.pwdg-strength-fill {
    height: 100%;
    width: 60%;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff6b6b, #ffd166);
    transition: all 0.5s ease;
}

/* Controls */
.pwdg-control-group {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.pwdg-control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.pwdg-control-label i {
    color: #006bff;
    margin-right: 10px;
}

.pwdg-length-value {
    background: #006bff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 107, 255, 0.2);
}

.pwdg-slider {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #006bff, #0099ff);
    border-radius: 6px;
    outline: none;
}

.pwdg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #006bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.pwdg-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Options */
.pwdg-options-group {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.pwdg-options-title {
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwdg-options-title i {
    color: #006bff;
}

.pwdg-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.pwdg-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pwdg-option:hover {
    transform: translateY(-2px);
    border-color: #006bff;
    box-shadow: 0 8px 16px rgba(0, 107, 255, 0.1);
}

.pwdg-option input {
    display: none;
}

.pwdg-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #adb5bd;
    border-radius: 6px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.pwdg-option input:checked + .pwdg-checkmark {
    background: #006bff;
    border-color: #006bff;
}

.pwdg-option input:checked + .pwdg-checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pwdg-option-label {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
}

/* Actions */
.pwdg-actions {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

/* Footer */
.pwdg-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.pwdg-footer-note {
    font-size: 1.1rem;
    color: #006bff;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pwdg-disclaimer {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pwdg-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .pwdg-body {
        padding: 25px;
    }
    
    .pwdg-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .pwdg-actions {
        flex-direction: column;
    }
    
    .pwdg-password-field {
        flex-direction: column;
        gap: 10px;
    }
    
    .pwdg-password-actions {
        width: 100%;
    }
    
    .pwdg-btn {
        width: 100%;
    }
    
    .pwdg-options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pwdg-header {
        padding: 30px 20px;
    }
    
    .pwdg-body {
        padding: 20px;
    }
    
    .pwdg-title {
        font-size: 1.8rem;
    }
    
    .pwdg-subtitle {
        font-size: 1rem;
    }
    
    #pwdg-generated-password {
        font-size: 1.2rem;
        padding: 18px;
    }
}