/**
 * Account Sidebar Styles
 *
 * @package TFS_Site_Manager
 * @since 2.0.0
 */

/* Sidebar Container */
.tfs-account-sidebar {
    background: #ffffff;
    border: 1px solid var(--color-border-default);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

/* User Profile Section */
.tfs-account-sidebar .tfs-user-profile {
    padding: 24px;
    border-bottom: 1px solid var(--color-border-default);
    text-align: center;
}

.tfs-account-sidebar .tfs-user-avatar {
    margin-bottom: 16px;
}

.tfs-account-sidebar .tfs-user-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid var(--w4l-brand);
}

.tfs-account-sidebar .tfs-user-info {
    margin-top: 12px;
}

.tfs-account-sidebar .tfs-user-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tfs-account-sidebar .tfs-user-email {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.tfs-account-sidebar .tfs-admin-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: var(--w4l-brand);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.tfs-account-sidebar .tfs-account-menu {
    padding: 0;
}

.tfs-account-sidebar .tfs-account-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tfs-account-sidebar .tfs-account-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--color-bg-surface-muted);
}

.tfs-account-sidebar .tfs-account-menu li:last-child {
    border-bottom: none;
}

.tfs-account-sidebar .tfs-account-menu a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

.tfs-account-sidebar .tfs-account-menu a:hover {
    background: var(--color-bg-surface-muted);
    color: var(--w4l-brand);
}

.tfs-account-sidebar .tfs-account-menu li.active a {
    background: var(--w4l-brand);
    color: #ffffff;
    font-weight: 600;
}

.tfs-account-sidebar .tfs-account-menu i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
}

.tfs-account-sidebar .tfs-account-menu span {
    flex: 1;
}

/* Unread total on a nav item; form-entries.js fills it and un-hides it. */
.tfs-account-sidebar .tfs-account-menu span.tfs-nav-badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--color-bg-danger-subtle);
    color: var(--color-text-danger);
    font-size: 12px;
    font-weight: 600;
}

.tfs-account-sidebar .tfs-account-menu span.tfs-nav-badge[hidden] {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tfs-account-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .tfs-account-sidebar .tfs-user-profile {
        padding: 16px;
    }

    .tfs-account-sidebar .tfs-user-avatar img {
        width: 60px;
        height: 60px;
    }

    .tfs-account-sidebar .tfs-account-menu a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .tfs-account-sidebar .tfs-account-menu a {
        font-size: 14px;
    }
}
