/* Manage Account Page Styles */

.account-hero {
    background: linear-gradient(315deg, var(--primary-color) 0, var(--primary-dark) 80%)
}

.account-section {
    padding: 3rem 0;
    background: var(--light-bg);
    min-height: calc(100vh - var(--header-height) - 200px);
}

.account-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Sidebar */
.account-sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.account-user-info {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.user-avatar i {
    font-size: 32px;
    color: white;
}

.account-user-info h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.account-user-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav li {
    margin-bottom: 0.5rem;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.account-nav a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.account-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.account-nav a i {
    width: 20px;
    text-align: center;
}

.account-nav .logout-link {
    color: #dc3545;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.account-nav .logout-link:hover {
    background: #fee;
}

/* Main Content */
.account-main {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.account-header h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-header h2 i {
    color: var(--primary-color);
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-label .required {
    color: #dc3545;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.input-with-icon input:disabled {
    background: #f8f9fa;
    color: var(--text-muted);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Buttons */
.btn-primary {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    background: #e2e8f0;
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    padding: 0.875rem 1.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #c82333;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #fee;
    color: #c00;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Password Change Section */
.password-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Spinner for buttons */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 0.5rem;
}

/* Account Info Cards */
.account-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-info-card .info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.account-info-card .info-value {
    color: var(--text-color);
    font-weight: 500;
}

.account-info-card .info-action {
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.account-info-card .info-action:hover {
    text-decoration: underline;
}

/* Provider Badge */
.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.provider-badge.google {
    background: #fff3e0;
    color: #e65100;
}

.provider-badge i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        display: flex;
        flex-direction: column;
    }
    
    .account-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .account-nav li {
        margin-bottom: 0;
    }
    
    .account-nav .logout-link {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .account-main {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
