/* Password Setup Modal (Mandatory for Google users) */
.password-setup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.password-setup-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative; /* Add this for absolute positioning of info btn */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-setup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.password-setup-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.password-setup-header h2 i {
    color: var(--color-primary-start);
}

.password-setup-header p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.password-setup-content .form-group {
    margin-bottom: 1.5rem;
}

.password-setup-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.password-setup-actions {
    margin-top: 2rem;
}

.password-setup-actions .save-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.password-setup-actions .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.password-setup-actions .save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.password-setup-content .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: block;
}

/* Info Button */
.password-setup-info-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-setup-info-btn:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

/* Info Tooltip */
.password-setup-info-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.info-tooltip-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.info-tooltip-content h3 {
    margin-top: 0;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-tooltip-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-tooltip-content li {
    margin: 0.5rem 0;
    color: #555;
}

.close-info-tooltip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-info-tooltip:hover {
    background: #f0f0f0;
    color: #333;
}

@media (max-width: 480px) {
    .password-setup-content {
        padding: 2rem 1.5rem;
    }
    
    .password-setup-header h2 {
        font-size: 1.5rem;
    }

    .info-tooltip-content {
        padding: 1.5rem;
    }
}

/* Dark Theme Styles */
[data-theme="dark"] .password-setup-modal {
    background: rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .password-setup-content {
    background: #2a2a2a;
    color: var(--color-text-primary);
}

[data-theme="dark"] .password-setup-header h2 {
    color: var(--color-text-primary);
}

[data-theme="dark"] .password-setup-header p {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .form-group label {
    color: var(--color-text-primary);
}

[data-theme="dark"] .edit-input {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

[data-theme="dark"] .edit-input:focus {
    border-color: var(--color-primary-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .error-message {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
}

[data-theme="dark"] .info-tooltip-content {
    background: #2a2a2a;
    color: var(--color-text-primary);
}

[data-theme="dark"] .info-tooltip-content h3 {
    color: var(--color-text-primary);
}

[data-theme="dark"] .info-tooltip-content p,
[data-theme="dark"] .info-tooltip-content ul li {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .close-info-tooltip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

