/* Account Settings Page Styles */

/* Account-specific styles that complement main.css */
.account-nav {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.account-nav h5 {
    color: #4D4D4D;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.account-nav .nav-link {
    color: #4D4D4D;
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    background: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.account-nav .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    font-size: 1.1rem;
}

.account-nav .nav-link:hover {
    background: #f8f9fa;
    color: #212529;
}

.account-nav .nav-link.active {
    background: #4D4D4D;
    color: white;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

.account-section .card-header {
    background-color: #4D4D4D;
    color: white;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

.account-section .card-header h2,
.account-section .card-header h5 {
    color: white;
    margin-bottom: 0;
    font-weight: 600;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-info-list .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.profile-header h3 {
    font-weight: 600;
    color: #4D4D4D;
}

/* New Professional Profile Design */
.profile-header-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.profile-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.section-header {
    background: linear-gradient(135deg, #4D4D4D 0%, #6c757d 100%);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section-content {
    padding: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem;
}

.info-row .info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    min-width: 140px;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
}

.info-row .info-value {
    color: #212529;
    font-size: 1rem;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.security-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.security-actions .btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.security-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Enhance edit button */
#edit-profile-btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#edit-profile-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 192, 239, 0.3);
}

/* Empty states */
.empty-state {
    padding: 3rem 2rem;
}

.empty-state i {
    display: block;
}

.empty-state h5 {
    font-weight: 600;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.info-item {
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    color: #212529;
    font-size: 1rem;
    word-break: break-word;
}

.org-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s;
}

.org-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trial-status {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.trial-active {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.trial-expired {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.trial-inactive {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.billing-portal-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.billing-portal-btn:hover {
    background: #4a9fd1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 192, 239, 0.3);
}

.billing-portal-btn i {
    margin-right: 0.5rem;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner-border {
    color: var(--primary-color);
}

/* Billable FAQs Styling */
.billable-stat {
    padding: 1rem 0;
}

.billable-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.billable-count.proai {
    color: #5AC0EF;
}

.billable-count.basic {
    color: #495057;
}

.billable-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .account-nav {
        position: static;
        margin-bottom: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .billable-count {
        font-size: 2rem;
    }

    /* Mobile improvements for new profile design */
    .profile-header-card {
        padding: 1.5rem;
    }

    .profile-header-card .d-flex {
        flex-direction: column;
        align-items: start !important;
        gap: 1rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 0.75rem 0;
    }

    .info-row .info-value {
        text-align: left;
        margin-left: 0;
        margin-top: 0.25rem;
        font-weight: 500;
    }

    .security-actions {
        justify-content: center;
    }

    .security-actions .btn {
        flex: 1;
        min-width: 140px;
    }
}