/**
 * Elite Tactician Design System - Layout v3
 * Combined header/nav, breadcrumbs, page title, footer
 *
 * Version: 3.0
 * Date: March 2026
 */

/* =========================================
   BODY - V3 Base Styles
   ========================================= */
.body-v3 {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--et-on-surface);
    background: var(--et-surface-container-low);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

/* =========================================
   HEADER V3 - Combined Header + Nav
   Fixed top bar, Power Navy
   ========================================= */
.header-v3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4rem;
    background: var(--et-primary-container);
    z-index: var(--z-fixed, 1030);
}

.header-v3-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6, 1.5rem);
    height: 100%;
}

/* ---- Left: Logo + Nav ---- */
.header-v3-left {
    display: flex;
    align-items: center;
    gap: var(--space-6, 1.5rem);
    min-width: 0;
    flex: 1;
}

.logo-v3 {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-v3 .logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-v3:hover .logo-img {
    transform: scale(1.05);
}

/* ---- Nav V3 ---- */
.nav-v3 {
    display: none;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .nav-v3 {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .nav-v3 {
        gap: var(--space-1, 0.25rem);
    }
}

.nav-v3-item {
    position: relative;
    margin-bottom: 0;
}

.nav-v3-link {
    display: flex;
    align-items: center;
    gap: var(--space-1-5, 0.375rem);
    padding: var(--space-2, 0.5rem) var(--space-2, 0.5rem);
    color: rgba(203, 213, 225, 1);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

@media (min-width: 1280px) {
    .nav-v3-link {
        font-size: 0.8125rem;
        padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
        gap: var(--space-2, 0.5rem);
    }
}

.nav-v3-link:hover {
    color: #ffffff;
}

.nav-v3-link.active {
    color: var(--et-secondary);
    border-bottom-color: var(--et-secondary);
}

.nav-v3-link i:not(.fa-chevron-down) {
    font-size: 0.75rem;
    opacity: 0.6;
    display: none;
}

@media (min-width: 1280px) {
    .nav-v3-link i:not(.fa-chevron-down) {
        display: inline;
        font-size: 0.875rem;
    }
}

.nav-v3-link i.fa-chevron-down {
    font-size: 0.5625rem;
    margin-left: var(--space-1, 0.25rem);
    transition: transform 0.2s ease;
}

/* ---- Nav Dropdown V3 ---- */
.nav-v3-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--et-primary-container);
    border: var(--ghost-border);
    border-radius: var(--radius-lg, 0.5rem);
    box-shadow: var(--shadow-ambient-lg);
    padding: var(--space-2, 0.5rem) 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.nav-v3-item:hover .nav-v3-dropdown,
.nav-v3-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-v3-dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    color: rgba(203, 213, 225, 0.8);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
}

.nav-v3-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-v3-dropdown-link i {
    width: 16px;
    opacity: 0.6;
}

.nav-v3-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: var(--space-2, 0.5rem) 0;
}

/* ---- Right: Search + Actions ---- */
.header-v3-right {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    flex-shrink: 0;
}

/* Search V3 — Icon toggle + expandable overlay */
.search-bar-v3 {
    position: relative;
    display: none;
    align-items: center;
}

@media (min-width: 768px) {
    .search-bar-v3 {
        display: flex;
    }
}

/* Search toggle button — matches icon-btn style */
.search-bar-v3 .search-toggle {
    position: relative;
    z-index: 2;
}

/* Expandable search overlay */
.search-overlay {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background: var(--et-primary-container, #1a2437);
    border-radius: var(--radius-md, 0.375rem);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                visibility 0.2s ease;
    z-index: 3;
}

.search-overlay.is-open {
    width: 320px;
    opacity: 1;
    visibility: visible;
}

.search-overlay .search-input {
    flex: 1;
    min-width: 0;
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem) var(--space-2, 0.5rem) var(--space-9, 2.25rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md, 0.375rem);
    color: white;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.search-overlay .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-overlay .search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.search-overlay-icon {
    position: absolute;
    left: var(--space-3, 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    font-size: 0.75rem;
    z-index: 1;
}

.search-overlay-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: var(--space-1, 0.25rem);
    margin-right: var(--space-1, 0.25rem);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: var(--radius-sm, 0.25rem);
    transition: color 0.15s ease, background 0.15s ease;
}

.search-overlay-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Header actions V3 */
.header-v3-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
}

/* Icon buttons in header (reuse existing .icon-btn styles) */
.header-v3 .icon-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: var(--radius-md, 0.375rem);
}

.header-v3 .icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Avatar in header V3 */
.header-v3 .avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md, 0.375rem);
    background: linear-gradient(135deg, var(--et-secondary) 0%, var(--et-secondary-container) 100%);
    border: none;
    font-size: 0.75rem;
}

/* Account dropdown in header */
.header-v3 .account-dropdown {
    background: var(--et-primary-container);
    border: var(--ghost-border);
}

/* Notification dropdown in header */
.header-v3 .notification-dropdown {
    background: var(--et-primary-container);
    border: var(--ghost-border);
}

/* Mobile toggle */
.nav-v3-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: var(--radius-md, 0.375rem);
    color: white;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nav-v3-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
    .nav-v3-mobile-toggle {
        display: none;
    }
}

/* Mobile menu V3 */
.nav-v3-mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--et-primary-container);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-ambient-lg);
    z-index: calc(var(--z-fixed, 1030) - 1);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.nav-v3-mobile-menu.is-open {
    display: block;
}

.nav-v3-mobile-menu .nav-v3-link {
    padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
}

.nav-v3-mobile-menu .nav-v3-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
}

.nav-v3-mobile-menu .nav-v3-dropdown-link {
    padding-left: var(--space-10, 2.5rem);
}

/* Mobile search in menu */
.nav-v3-mobile-search {
    padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-v3-mobile-search .search-input {
    width: 100%;
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-md, 0.375rem);
    color: white;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.nav-v3-mobile-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   PAGE HEADER V3 - Breadcrumbs + Title
   ========================================= */
.page-header-v3 {
    background: var(--et-surface-container-low);
    padding: var(--space-6, 1.5rem) var(--space-6, 1.5rem) var(--space-6, 1.5rem);
    margin-top: 4rem; /* offset for fixed header */
}

.page-header-v3-inner {
    max-width: 80rem;
    margin: 0 auto;
}

/* Breadcrumb V3 */
.breadcrumb-v3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1, 0.25rem);
    margin-bottom: var(--space-2, 0.5rem);
    list-style: none;
    padding: 0;
}

.breadcrumb-v3 a {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--et-on-surface-variant);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-v3 a:hover {
    color: var(--et-secondary);
}

.breadcrumb-v3 .breadcrumb-separator {
    color: var(--et-on-surface-variant);
    font-size: 0.5rem;
    opacity: 0.5;
}

.breadcrumb-v3 .breadcrumb-current {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--et-secondary);
}

/* Page Title V3 */
.page-title-v3 {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--et-primary);
    margin: 0;
}

.page-subtitle-v3 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--et-on-surface-variant);
    margin-top: var(--space-1, 0.25rem);
}

/* =========================================
   MAIN CONTENT V3
   ========================================= */
.main-content-v3 {
    flex: 1;
    padding: var(--space-6, 1.5rem) var(--space-6, 1.5rem) var(--space-16, 4rem);
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

/* When no page-header-v3 is present, add top margin for fixed header */
.main-content-v3.no-page-header {
    margin-top: 4rem;
}

/* =========================================
   FOOTER V3 - Light Editorial
   ========================================= */
.footer-v3 {
    background: #f8fafc;
    padding: var(--space-12, 3rem) var(--space-6, 1.5rem);
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.footer-v3-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8, 2rem);
}

@media (min-width: 640px) {
    .footer-v3-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-v3-inner {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

/* Footer brand */
.footer-v3-brand {
    max-width: 280px;
}

@media (max-width: 639px) {
    .footer-v3-brand {
        max-width: none;
        text-align: center;
    }
}

.footer-v3-brand .logo-img {
    height: 32px;
    width: auto;
    margin-bottom: var(--space-3, 0.75rem);
    opacity: 0.7;
}

.footer-v3-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

.footer-v3-social {
    display: flex;
    gap: var(--space-3, 0.75rem);
    margin-top: var(--space-4, 1rem);
}

@media (max-width: 639px) {
    .footer-v3-social {
        justify-content: center;
    }
}

.footer-v3-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    border-radius: var(--radius-md, 0.375rem);
    transition: color 0.15s ease;
}

.footer-v3-social a:hover {
    color: var(--et-secondary);
}

/* Footer columns */
.footer-v3-heading {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--et-primary);
    margin: 0 0 var(--space-4, 1rem);
}

.footer-v3-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-v3-list li {
    margin-bottom: var(--space-2, 0.5rem);
}

.footer-v3-list a {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-v3-list a:hover {
    color: var(--et-secondary);
    text-decoration: underline;
}

/* Footer bottom */
.footer-v3-bottom {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8, 2rem);
    margin-top: var(--space-8, 2rem);
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 639px) {
    .footer-v3-bottom {
        flex-direction: column;
        gap: var(--space-3, 0.75rem);
        text-align: center;
    }
}

.footer-v3-copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.footer-v3-status {
    font-size: 0.75rem;
    color: var(--et-secondary);
    font-weight: 600;
}

/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */

@media (max-width: 767px) {
    .header-v3-inner {
        padding: 0 var(--space-4, 1rem);
    }

    .page-header-v3 {
        padding: var(--space-4, 1rem);
    }

    .main-content-v3 {
        padding: var(--space-4, 1rem) var(--space-4, 1rem) var(--space-12, 3rem);
    }
}

/* =========================================
   ICON BUTTON (base styles, formerly in layout-v2)
   ========================================= */
.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-lg, 0.5rem);
    color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    text-decoration: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--et-secondary);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   AVATAR (base styles)
   ========================================= */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg, 0.5rem);
    background: linear-gradient(135deg, var(--et-secondary) 0%, var(--et-secondary-container) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

/* =========================================
   ACCOUNT DROPDOWN (base styles)
   ========================================= */
.account-menu {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--et-primary-container);
    border: var(--ghost-border);
    border-radius: var(--radius-lg, 0.5rem);
    box-shadow: var(--shadow-ambient-xl);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.account-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-header {
    padding: 0.75rem 1rem;
    text-align: center;
}

.account-dropdown-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.account-dropdown-username {
    display: block;
    font-weight: 600;
    color: white;
}

.account-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.25rem 0;
}

.account-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.account-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.account-dropdown-link i {
    width: 16px;
    text-align: center;
}

.account-dropdown-logout:hover {
    background: rgba(182, 21, 46, 0.2);
    color: #f9a8b4;
}

/* =========================================
   NOTIFICATION DROPDOWN (base styles)
   ========================================= */
.notification-center {
    position: relative;
    z-index: 10;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    background: var(--et-primary-container);
    border: var(--ghost-border);
    border-radius: var(--radius-lg, 0.5rem);
    box-shadow: var(--shadow-ambient-xl);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.notification-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-header h3 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.notification-mark-all {
    background: none;
    border: none;
    color: var(--et-tertiary);
    font-size: 0.75rem;
    cursor: pointer;
}

.notification-mark-all:hover {
    color: var(--assist-cyan-light);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
    background: rgba(8, 145, 178, 0.1);
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
}

.notification-item-message {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    gap: 0.5rem;
}

.notification-empty i {
    font-size: 1.5rem;
}

.notification-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.notification-footer a {
    color: var(--et-tertiary);
    font-size: 0.8125rem;
    text-decoration: none;
}

.notification-footer a:hover {
    color: var(--assist-cyan-light);
}

.notification-unread-indicator {
    width: 8px;
    height: 8px;
    background: var(--et-tertiary);
    border-radius: 9999px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.notification-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.notification-item-actions button {
    background: none;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
}

.notification-item-actions .mark-read-btn {
    color: var(--et-tertiary);
}

.notification-item-actions .mark-read-btn:hover {
    color: var(--assist-cyan-light);
    background: rgba(8, 145, 178, 0.1);
}

.notification-item-actions .delete-btn {
    color: rgba(255, 255, 255, 0.5);
}

.notification-item-actions .delete-btn:hover {
    color: #f9a8b4;
    background: rgba(182, 21, 46, 0.1);
}

/* =========================================
   CONTAINER (base — formerly in responsive-v2)
   ========================================= */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { padding-left: 1.25rem; padding-right: 1.25rem; max-width: 640px; }
}

@media (min-width: 768px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 80rem; }
}

/* =========================================
   MAIN CONTENT (legacy class compat)
   ========================================= */
.main-content {
    flex: 1;
    padding: 2rem 1.5rem 4rem;
    position: relative;
    margin-top: 4rem; /* fixed header offset */
}

/* =========================================
   NAV-LINK OVERRIDE (moved from inline)
   ========================================= */
.nav-link {
    font-size: 0.875rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

/* =========================================
   RESPONSIVE - Mobile adjustments
   ========================================= */
@media (max-width: 767px) {
    .notification-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
    .header-v3,
    .nav-v3-mobile-menu,
    .footer-v3 {
        display: none !important;
    }

    .page-header-v3 {
        margin-top: 0;
    }

    .main-content-v3 {
        padding: 0;
        margin-top: 0;
    }
}
