/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Home Page Background Elements */
.home-page-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: transparent;
}

/* Added global wave styles for site-wide implementation */
/* For pages with waves - these will apply to all pages using the wave elements */
.site-waves {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Top Wave SVG - Fixed positioning */
.top-wave {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 0;
    transform: none;
    pointer-events: none;
}

/* Bottom Wave SVG - Fixed positioning */
.bottom-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 0;
    transform: none;
    pointer-events: none;
}

/* Decorative Blob */
.decorative-blob {
    position: absolute;
    top: 80px;
    left: 15%;
    z-index: 1;
    pointer-events: none;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding-top: 60px;
    padding-bottom: 40px;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #f2f2f2;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f2f2f2;
    margin-bottom: 2rem;
}

/* Responsive adjustments for background elements */
@media (max-width: 768px) {
    .top-wave {
        height: 250px;
    }
    
    .bottom-wave {
        height: 250px;
    }
    
    .decorative-blob {
        width: 40px;
        height: auto;
        top: 60px;
        left: 10%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .top-wave {
        height: 180px;
    }
    
    .bottom-wave {
        height: 180px;
    }
    
    .decorative-blob {
        width: 30px;
        height: auto;
        top: 50px;
        left: 5%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

/* Base Elements */
html {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Lexend Deca', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: white;
    overflow-x: hidden;
    position: relative;
    padding-top: 65px; /* Adjust based on navbar height */
}

/* Typography */
.hero-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Focus States */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Disable text selection for clickable elements */
.btn, .dropdown-toggle, .nav-link, .dropdown-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

/* Container */
.container, .past-meets-page {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Home page specific container adjustments */
.home-page-container .container {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Main Navigation */
.main-nav {
    width: 100%;
    height: auto;
    padding: 15px 24px; /* Increased padding for more space */
    background: #ffffff;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Lighter shadow for white background */
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: relative;
    gap: 20px;
}

/* Logo and brand */
.nav-brand {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.nav-logo img {
    max-height: 40px;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

.nav-logo-text {
    color: rgba(0, 0, 0, 0.8);
    font-size: clamp(24px, 5vw, 36px); /* Responsive font size using clamp */
    font-weight: 700;
    line-height: 1.1;
    transition: all 0.3s ease;
}

/* Update media queries for logo scaling */
@media (max-width: 1200px) {
    .nav-logo img {
        max-height: 38px;
    }
}

@media (max-width: 992px) {
    .nav-logo img {
        max-height: 36px;
    }
}

@media (max-width: 768px) {
    .nav-logo img {
        max-height: 34px;
    }
}

@media (max-width: 576px) {
    .nav-logo img {
        max-height: 32px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        max-height: 30px;
    }
    
    .nav-logo-text {
        font-size: 24px; /* Override clamp for very small screens */
    }
}

/* Navigation Links */
.nav-links {
    position: static;
    transform: none;
    display: flex;
    gap: 24px;
    justify-self: center; /* center within grid middle column */
}

.nav-link {
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    padding: 8px 12px;
}

    .nav-link:hover {
        color: #ff3301;
        background-color: rgba(255, 51, 1, 0.1);
        border-radius: 4px;
    }

/* Center section for desktop search */
.nav-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    justify-self: end; /* right grid column */
}

/* Reserve space no longer needed with grid layout */

/* Right side elements */
.nav-right {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Mobile icons container */
.nav-mobile-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-icon {
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-search-icon:hover {
    background-color: rgba(8, 93, 102, 0.1);
}

/* Enhanced navbar search */
.nav-search-container {
    position: relative;
    width: auto;
}

.nav-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-input {
    width: clamp(220px, 24vw, 380px);
    padding: 12px 16px 12px 48px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
}

.nav-search-input:focus {
    border-color: #ff3301;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 51, 1, 0.1);
}

.nav-search-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.nav-search-icon-wrapper {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #085d66;
    pointer-events: none;
    padding-left: 0;
}

/* Navigation search dropdown */
.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    max-height: 80vh;
    display: none;
    overflow: hidden;
    width: 420px;
    max-width: 90vw;
}

.nav-search-dropdown.show {
    display: block;
}

.nav-search-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.nav-search-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-search-tab:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.nav-search-tab.active {
    color: #ff3301;
    background-color: white;
    border-bottom: 2px solid #ff3301;
}

.nav-search-results {
    max-height: 60vh;
    overflow-y: auto;
}

.nav-search-tab-content {
    display: none;
    padding: 16px;
}

.nav-search-tab-content.active {
    display: block;
}

.nav-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #6b7280;
}

.nav-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #ff3301;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search result items */
.nav-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.nav-result-item:hover {
    background-color: #f3f4f6;
    text-decoration: none;
    color: inherit;
}

.nav-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6b7280;
}

.nav-result-content {
    flex: 1;
    min-width: 0;
}

.nav-result-title {
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-result-subtitle {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-result-badge {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Mobile search overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    backdrop-filter: blur(4px);
}

.mobile-search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    max-height: 80vh;
    overflow-y: auto;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background-color: #f9fafb;
}

.mobile-search-input:focus {
    border-color: #ff3301;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 51, 1, 0.1);
}

.mobile-search-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-search-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.mobile-search-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.mobile-search-tab {
    flex: 1;
    padding: 14px 16px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-search-tab:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.mobile-search-tab.active {
    color: #ff3301;
    background-color: white;
    border-bottom: 2px solid #ff3301;
}

.mobile-search-results {
    max-height: 50vh;
    overflow-y: auto;
}

.mobile-search-tab-content {
    display: none;
    padding: 16px;
}

.mobile-search-tab-content.active {
    display: block;
}

.mobile-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6b7280;
}

.mobile-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #ff3301;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

/* Mobile search result items */
.mobile-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.mobile-result-item:hover {
    background-color: #f3f4f6;
    text-decoration: none;
    color: inherit;
}

.mobile-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.mobile-result-content {
    flex: 1;
    min-width: 0;
}

.mobile-result-title {
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

.mobile-result-subtitle {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-result-badge {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
    /* Keep logo size; hide desktop search on mobile; align icons right */
    .nav-logo img { max-height: 40px; }
    .nav-center { display: none !important; }
    .nav-search-icon-wrapper { left: 12px; }
    .nav-container { display: flex; align-items: center; justify-content: space-between; }
    .nav-brand { display: flex; align-items: center; width: 100%; }
    .nav-mobile-icons { display: flex; align-items: center; gap: 10px; margin-left: auto; }
    .mobile-menu-toggle { display: block; padding: 6px; margin-left: 6px; }
    .hamburger-icon { width: 24px; height: 18px; }
}

/* Use squiggle logo between 768px and 922px with a taller minimum height */
@media (min-width: 768px) and (max-width: 922px) {
    .nav-logo picture .nav-logo-img {
        min-height: 42px;
        max-height: 50px;
    }
}

/* Legacy search styles - keeping for compatibility */
.nav-search {
    display: flex;
    height: 36px;
}

    .nav-search input {
        width: 200px;
        padding: 10px 14px;
        font-size: 16px;
        border: 1px solid #618c8e;
        border-radius: 4px 0 0 4px;
    }

.search-btn {
    padding: 10px 14px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Authentication */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-link {
    color: rgba(0, 0, 0, 0.8);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-divider {
    color: #618c8e;
}

.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EEEEEE;
    border: 2px solid #618c8e;
}

/* Social media icons */
.nav-social {
    display: flex;
    gap: 24px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.8);
}

.instagram::after {
    width: 21.41px;
    height: 21.41px;
}

.twitter::after {
    width: 17.6px;
    height: 17.6px;
}

.facebook::after {
    width: 18.75px;
    height: 18.75px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    transition: all 0.2s ease;
    z-index: 2010; /* Ensure it's above other elements */
    border-radius: 4px;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Traditional 3-line hamburger menu */
.hamburger-icon {
    display: block;
    color: #FFFFFF;
    transition: transform 0.3s ease;
}

.hamburger-icon .line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Active state - transform into X */
.mobile-menu-toggle.active .hamburger-icon {
    transform: rotate(0deg);
}

.mobile-menu-toggle.active .line1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .line2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .line3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Close Button */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-close {
    font-size: 24px;
    line-height: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Bottom Navigation */
.nav-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 10px 0;
}

.nav-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(0, 0, 0, 0.4);
}

.nav-bottom a:hover, 
.nav-bottom a.active {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn-black {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

.btn-black:hover {
    background-color: rgba(0, 0, 0, 1);
    color: white;
}

.btn-outline-black {
    border: 2px solid rgba(0, 0, 0, 0.8);
    color: rgba(0, 0, 0, 0.8);
}

.btn-outline-black:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Leaderboard Container */
.leaderboard-container {
    background-color: #EEEEEE;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.8);
    padding: 20px;
    margin-bottom: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    table-layout: fixed;
}

.leaderboard-table th {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 5px; /* Reduced padding to fix gap */
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.leaderboard-table td {
    padding: 12px 5px; /* Reduced padding to fix gap */
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
}

/* Column width control for tables - make avatar and lane fixed */
.results-table-with-avatar th:first-child,
.results-table-with-avatar td:first-child {
    width: 50px; /* Avatar column - fixed width */
    min-width: 50px;
    max-width: 50px;
}

.results-table-with-avatar th:nth-child(2),
.results-table-with-avatar td:nth-child(2) {
    width: 50px; /* Lane column - fixed width */
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}

/* Athlete name column gets priority when stretching */
.results-table-with-avatar th:nth-child(4),
.results-table-with-avatar td:nth-child(4) {
    width: auto; /* Flexible */
    min-width: 200px; /* Increased minimum width for athlete name + age */
    text-align: left;
    padding-left: 8px;
}

/* Fixed widths for remaining columns */
.results-table-with-avatar th:nth-child(5),
.results-table-with-avatar td:nth-child(5) {
    width: 100px; /* Time */
    min-width: 100px;
    max-width: 100px;
    text-align: center;
}

.results-table-with-avatar th:nth-child(6),
.results-table-with-avatar td:nth-child(6) {
    width: 50px; /* Place */
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}



/* Event Header Dropdown */
.event-header {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-header-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.event-dropdown {
    position: relative;
    width: 100%;
}

.event-header-dropdown {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    font-weight: 500;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    padding: 8px 40px 8px 16px; /* Increased right padding for the arrow */
    text-align: left;
    cursor: pointer;
    user-select: none;
    position: relative;
    display: block;
    background-color: #fff;
}

.event-header-dropdown:hover, 
.event-header-dropdown:focus {
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.4);
}

.event-header-dropdown .fa-chevron-down {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.event-header-dropdown[aria-expanded="true"] .fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Menu */
.event-dropdown-menu {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1001;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    margin-top: 5px;
    background-color: white;
}

.event-dropdown-menu.show,
.dropdown.event-dropdown.show .event-dropdown-menu {
    display: block;
}

.dropdown.event-dropdown.show .fa-chevron-down,
.event-header-dropdown[aria-expanded="true"] .fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
}

.event-dropdown-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
    white-space: normal;
    word-wrap: break-word;
    user-select: none;
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.event-dropdown-menu .dropdown-item:hover,
.event-dropdown-menu .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.event-dropdown-menu .dropdown-item.active {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}



/* Updated Styling for Filters Container */
.filters-container {
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-row {
    display: flex;
    gap: 15px;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    background-color: white;
}

/* Event Dropdown Styling */
.event-dropdown-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.event-select-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.event-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.event-select-btn i {
    margin-left: 10px;
}

.event-dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-select-dropdown.show .event-dropdown-menu {
    display: block;
}

.event-dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.event-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.event-dropdown-menu .dropdown-item:hover,
.event-dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa;
}

.event-dropdown-menu .dropdown-item.active {
    background-color: #e9ecef;
    font-weight: 500;
}

/* Heat Selection Styling */
.heat-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.heat-buttons {
    display: flex;
    align-items: center;
}

.heat-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-right: 10px;
    min-width: 50px;
}

.heat-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.heat-button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    text-align: center;
    min-width: 40px;
}

.heat-button:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.heat-button.active {
    background-color: #127580;
    color: white;
    border-color: #127580;
}

.heat-button-large {
    font-size: 1.2rem;
    padding: 8px 18px;
    min-width: 50px;
    border-radius: 25px;
}

/* Round Tabs Styling (Updated) */
.round-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.round-tab {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    text-align: center;
}

.round-tab:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.round-tab.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .heat-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .heat-label {
        margin-bottom: 8px;
    }
    
    .heat-container {
        width: 100%;
    }
}

/* Meet Cards */
.meet-cards {
    display: block;
}

.meet-cards .row {
    margin-right: -10px;
    margin-left: -10px;
}

.meet-cards .col-12,
.meet-cards .col-md-6,
.meet-cards .col-lg-4 {
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 16px;
}

.meet-card {
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.meet-card-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meet-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.meet-date {
    font-size: 0.9rem;
    color: #666;
}

.meet-card-body {
    padding: 16px;
    flex: 1 1 auto;
}

.meet-card-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.meet-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.detail-item i {
    color: rgba(0, 0, 0, 0.6);
    width: 16px;
}

.meet-events {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.meet-events h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-tag {
    background-color: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.more-tag {
    background-color: #e0e0e0;
}

/* Past meet specific styling */
.past-meet-card {
    opacity: 0.9;
}

/* Meet details header */
.meet-header {
    margin-bottom: 32px;
}

.meet-title {
    margin-bottom: 8px;
}

.meet-dates {
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meet-info-section {
    margin-bottom: 24px;
}

.meet-info-section h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    gap: 16px;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
}

.info-label {
    font-weight: 500;
    color: #666;
}

.info-value {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-value i {
    color: rgba(0, 0, 0, 0.6);
    width: 16px;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    padding: 3rem 1rem;
    text-align: center;
    z-index: 2;
    margin-top: 2rem;
    color: white;
    background-color: #127580; /* Match bottom wave color */
    border-radius: 12px;
    overflow: hidden;
}

.newsletter-section h2 {
    color: white;
    position: relative;
    z-index: 2;
}

.newsletter-input {
    background-color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.social-login {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-login a {
    color: white;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-login a:hover {
    background-color: rgba(255,255,255,0.4);
}

.newsletter-section .btn-black {
    background-color: #000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 2rem 1rem;
    }
}

/* This is already defined above */

.newsletter-banner {
    height: 698px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.newsletter-title {
    font-size: 34px;
    font-weight: 500;
    line-height: 40px;
    color: black;
    text-align: center;
    max-width: 800px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    width: 600px;
}

.newsletter-submit {
    width: 141px;
    height: 48px;
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    border: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: white;
    cursor: pointer;
}

/* Social Login & Icons */
.social-login {
    margin-top: 20px;
    text-align: center;
}

.social-login a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    transition: transform 0.2s;
}

.social-login a:hover {
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    gap: 32px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 32px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Results Summary */
.results-summary {
    color: #666;
    font-style: italic;
}

/* Form Elements */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

/* Validation Styles */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
}

.input-validation-error {
    border-color: #dc3545;
}

.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Registration Form */
.registration-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-section {
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Extra extra small devices (narrow phones, 365px and down) */
@media (max-width: 365px) {
    /* Navigation */
    .nav-logo-text {
        font-size: 22px;
    }
    
    .nav-logo img {
        max-height: 26px;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .hamburger-icon {
        width: 20px;
        height: 16px;
    }
    
    /* Layout and Containers */
    .container, .past-meets-page {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Leaderboard */
    .leaderboard-container {
        padding: 10px 8px;
    }
    
    /* Fix for small screens table spacing */
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 6px 2px;
        font-size: 0.65rem;
    }
    
    /* Dropdown */
    .event-header-dropdown {
        font-size: 0.85rem;
        padding: 6px 25px 6px 8px;
    }
}

/* Extra small devices (phones, 400px and down) */
@media (max-width: 400px) {
    /* Navigation */
    .main-nav {
        padding: 8px 10px;
    }
    
    .nav-brand {
        gap: 5px;
    }
    
    .nav-logo {
        padding-right: 5px;
    }
    
    .nav-logo-text {
        font-size: 24px;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        padding: 6px;
        margin-right: -6px;
    }
    
    .nav-links {
        width: 250px;
        left: -250px;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .nav-header {
        padding: 10px;
    }
    
    .nav-close {
        font-size: 22px;
        padding: 3px 8px;
    }
    
    /* Dropdown */
    .event-header-dropdown {
        font-size: 0.9rem;
        padding: 8px 30px 8px 10px;
    }
    
    /* Leaderboard */
    .leaderboard-container {
        padding: 12px;
        margin-bottom: 24px;
        border-radius: 8px;
    }
    
    .leaderboard-table {
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 6px 2px;
        font-size: 0.7rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .leaderboard-table th:nth-child(1), 
    .leaderboard-table td:nth-child(1) {
        padding: 2px 1px;
    }
    
    .leaderboard-table th:nth-child(2), 
    .leaderboard-table td:nth-child(2) {
        padding: 4px 1px;
    }
    
    /* Cards */
    .meet-card {
        border-radius: 6px;
    }
    
    .meet-card-header,
    .meet-card-body,
    .meet-card-footer {
        padding: 8px 10px;
    }
    
    /* Layout and Containers */
    .container, .past-meets-page {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.375rem 0.6rem;
        font-size: 0.875rem;
    }
    
    .athlete-avatar.avatar-sm {
        width: 50px;
        height: 50px;
        border-width: 1px;
    }
    
    .results-table-with-avatar th:first-child,
    .results-table-with-avatar td:first-child {
        width: 35px;
        padding: 2px 1px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 4px 1px;
        font-size: 0.65rem;
    }
    
    .results-table-with-avatar th:nth-child(3),
    .results-table-with-avatar td:nth-child(3) {
        font-size: 0.7rem;
        padding-left: 4px;
        text-align: left;
    }
}

/* Small to medium devices (480px and down) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-logo img {
        max-height: 30px;
    }
    
    .nav-logo-text {
        font-size: 24px;
    }
    
    
}

/* Small devices (576px and down) */
@media (max-width: 576px) {
    /* Navigation */
    .nav-logo img {
        max-height: 32px;
    }
    
    /* Dropdown */
    .event-header-container {
        max-width: 100%;
    }
    
    .event-header-dropdown {
        font-size: 1rem;
        padding: 8px 32px 8px 12px;
    }
    
    .event-dropdown-menu .dropdown-item {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        padding: 10px 15px;
    }
    
    .nav-brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        z-index: 10;
    }
    
    .nav-logo {
        z-index: 10;
        padding-right: 10px;
        max-height: 34px;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        width: 280px; /* Slightly wider */
        background-color: #ffffff; /* White background to match navbar */
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        border-right: 1px solid #f0f0f0;
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 20px 90px; /* extra bottom space for install CTA */
        transition: left 0.3s ease;
        gap: 10px;
        z-index: 1050;
    }
    
    .nav-links.show {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 10px; /* More vertical padding */
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-align: left;
        color: #000000;
        font-size: 18px;
        text-decoration: none;
    }
    
    .nav-link:hover {
        color: #ff3301;
        background-color: rgba(255, 51, 1, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }

    /* Mobile PWA install CTA pinned to bottom of drawer */
    .mobile-install-cta {
        position: absolute;
        bottom: 16px;
        left: 20px;
        right: 20px;
    }
    .mobile-install-btn {
        width: 100%;
        background: linear-gradient(135deg, #ff3301 0%, #ff5c33 100%); /* Brand gradient */
        color: #ffffff;
        border: none;
        border-radius: 10px;
        padding: 12px 14px;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }
    .mobile-install-btn:active { transform: scale(0.98); }
    .mobile-install-hint {
        margin-top: 6px;
        font-size: 12px;
        color: #7a7a7a; /* Brand grey */
        text-align: center;
    }
    
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
        z-index: 1030;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .nav-search {
        display: none;
    }
    
    /* Cards */
    .meet-card-header {
        padding: 10px 12px;
    }
    
    .meet-card-body {
        padding: 10px 12px;
    }
    
    .meet-card-footer {
        padding: 10px 12px;
    }
    
    .meet-name {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .meet-date {
        font-size: 0.85rem;
    }
    
    .detail-item {
        margin-bottom: 0.5rem;
    }
    
    .event-tag {
        padding: 2px 6px;
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    /* Layout components */
    .profile-container {
        padding: 0 24px;
    }
    
    .section-title,
    .achievements-title {
        font-size: 36px;
        line-height: 40px;
    }
    
    .meets-grid,
    .past-meets-cards {
        flex-direction: column;
    }
    
    .newsletter-form {
        width: 90%;
    }
    
        
    

    
    /* Past events page */
    .past-meets-page {
        padding: 0 20px;
    }
    
    /* Lane allocation table responsive adjustments */
    .event-seeding-table th,
    .lane-allocation-table th {
        padding: 4px 6px;
        font-size: 0.85rem;
    }
    
    .event-seeding-table td,
    .lane-allocation-table td {
        padding: 3px 6px;
        font-size: 0.85rem;
    }
    
    /* Ensure content doesn't overflow on mobile */
    .upcoming-meet-info {
        overflow-x: auto;
    }
    
    body {
        padding-top: 55px; /* Less padding on mobile */
    }
    
    /* Adjust page title sizes */
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
}
/* Larger screens (min-width queries) */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .meet-cards .row {
        margin-right: -15px;
        margin-left: -15px;
    }
    
    .meet-cards .col-12,
    .meet-cards .col-md-6,
    .meet-cards .col-lg-4 {
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .past-meets-page {
        padding: 0 20px;
    }
}

@media (min-width: 992px) {
    .container, .past-meets-page {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .past-meets-page {
        padding: 0 10px;
    }
}

/* Keep sidebar stacked until ~1100px so it shifts right later */
@media (min-width: 992px) and (max-width: 1099.98px) {
    .home-main-content-row .col-lg-8,
    .home-main-content-row .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .leaderboard-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Hide elements at certain breakpoints */
@media (max-width: 992px) {
    .nav-social {
        display: none;
    }
}

@media (max-width: 1200px) {
    .nav-search {
        display: none;
    }
}

/* Round selector styles */
.round-selector {
    display: flex;
    align-items: center;
}

.round-btn {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    margin-right: 0.5rem;
    border-radius: 20px;
}

.event-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .event-header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .round-selector {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Results Selector (Event dropdown + Round tabs) */
.results-selector-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Event Select Dropdown */
.event-select-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

.event-select-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 1.2rem;
    font-weight: 500;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.event-select-btn:hover,
.event-select-btn:focus {
    background-color: #e9ecef;
}

.event-select-btn .fa-chevron-down {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Round Selection Tabs */
.round-tabs {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.round-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #495057;
    border-right: 1px solid #dee2e6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.round-tab:last-child {
    border-right: none;
}

.round-tab:hover {
    background-color: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.round-tab.active {
    background-color: #0d6efd;
    color: white;
}

/* Disabled round tab */
.round-tab.disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .results-selector-container {
        flex-direction: row;
        align-items: center;
    }
    
    .event-select-dropdown {
        flex: 1;
        margin-bottom: 0;
        margin-right: 16px;
    }
    
    .round-tabs {
        width: auto;
        min-width: 300px;
    }
}

/* No Swim styling */
.no-swim-cell {
    color: #6c757d;
    font-weight: bold;
}

.no-swim-row {
    background-color: rgba(108, 117, 125, 0.05);
}

.no-swim-row:hover {
    background-color: rgba(108, 117, 125, 0.1);
}

/* Disqualified styling */
.disqualified-row {
    background-color: rgba(108, 117, 125, 0.05);
}

.disqualified-row:hover {
    background-color: rgba(108, 117, 125, 0.1);
}

/* Add styling for session filters */
.session-filters {
    display: flex;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group {
    margin-right: 15px;
    flex: 1;
}

.filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    background-color: white;
}

@media (max-width: 768px) {
    .session-filters {
        flex-direction: column;
    }
    
    .filter-group {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   ATHLETE PROFILE LINKS
   ========================================================================== */

/* Athlete links in results tables */
.athlete-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.athlete-link:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Mobile optimization for athlete names and team names */
@media (max-width: 768px) {
    .athlete-link {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .team-name {
        font-size: 0.65rem;
        line-height: 1.1;
        margin-top: -1px;
    }
}

/* DQ styling enhancement */
.text-danger.font-weight-bold {
    color: #dc3545 !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   ATHLETE AVATAR
   ========================================================================== */

/* Avatar container for profile and tables */
.athlete-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 2px solid rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-shrink: 0;
}

/* Smaller avatar size for tables */
.athlete-avatar.avatar-sm {
    width: 50px;
    height: 50px;
    border-width: 1px;
}

/* Avatar for athlete profile page */
.athlete-avatar.avatar-lg {
    width: 160px;
    height: 160px;
}

/* Avatar image styling */
.athlete-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Meet logo containers (4:3 aspect ratio) */
.meet-logo-slot {
    position: relative;
    background-color: transparent; /* transparent box per requirement */
    overflow: hidden;
    border-radius: 12px;
}

/* 4:3 aspect ratio using intrinsic ratio technique */
.meet-logo-slot::before {
    content: "";
    display: block;
    padding-top: 75%;
}

.meet-logo-slot img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain; /* preserve full logo, no crop */
}

/* Size modifiers (explicit widths so they render in shrink-to-fit contexts) */
.meet-logo-sm { width: 150px; max-width: 100%; }
.meet-logo-md { width: 240px; max-width: 100%; }
.meet-logo-lg { width: 320px; max-width: 100%; }

/* Utility to center inline blocks */
.center-inline { display: inline-block; }

/* Thumbnail used in home meet cards */
.meet-card-thumb {
    width: 120px;
    height: auto;
    object-fit: contain; /* preserve full logo */
    border-radius: 8px;
    margin-right: 12px;
    background: #fff;
    flex-shrink: 0;
}

/* Upcoming card responsive grid */
.upcoming-card-grid {
    display: grid;
    grid-template-columns: 140px 1fr; /* desktop: image, info */
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "media title"
        "media location"
        "date actions"
        "start actions";
    gap: 8px 16px;
    align-items: start;
}

/* No image layout - content flows to left */
.upcoming-card-grid.no-image {
    grid-template-columns: 1fr; /* single column, no image space */
    grid-template-areas:
        "title"
        "date"
        "location"
        "start"
        "actions";
    gap: 4px;
}

.upcoming-media {
    grid-area: media;
    width: 120px;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.upcoming-title { grid-area: title; margin: 0; }
.meet-date { grid-area: date; font-size: 0.95rem; margin: 0; }
.meet-location { grid-area: location; font-size: 0.95rem; }
.meet-start { grid-area: start; font-weight: 600; margin: 0; }
.upcoming-actions { grid-area: actions; display: flex; gap: 8px; align-items: center; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
.btn-compact { padding: 6px 10px; font-size: 0.85rem; }

/* Tablet & mobile layout: stack image top-left, right column with location/time, then title/date and actions */
@media (max-width: 1200px) {
    .upcoming-card-grid {
        grid-template-columns: 140px 1fr;
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "media title"
            "media date"
            "media location"
            "media start"
            "actions actions";
        align-items: start;
    }
    
    .upcoming-card-grid.no-image {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "date"
            "location"
            "start"
            "actions";
    }
    
    .upcoming-media { width: 140px; height: auto; }
    .upcoming-actions { grid-column: 1 / -1; justify-content: flex-end; flex-direction: row; }
    .upcoming-card-grid.no-image .upcoming-actions { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .upcoming-card-grid {
        grid-template-columns: 1fr; /* full width */
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-areas:
            "media"
            "title"
            "date"
            "location"
            "start"
            "actions";
    }
    
    .upcoming-card-grid.no-image {
        grid-template-rows: auto auto auto auto auto; /* one less row without media */
        grid-template-areas:
            "title"
            "date"
            "location"
            "start"
            "actions";
    }
    
    .upcoming-media { width: 100%; height: auto; object-fit: contain; }
    .upcoming-actions { justify-content: flex-start; gap: 10px; flex-direction: row; }
    .btn-compact { padding: 8px 12px; font-size: 0.9rem; }
    .upcoming-title { line-height: 1.1; } /* Tighter line spacing on mobile */
}

/* Large logo at left of meet-card-content on Upcoming page */
.meet-card-logo-xl {
    width: 128px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Ensure meet-card-content arranges logo and info side-by-side */
.meet-card-content {
    display: flex;
    align-items: center;
}

/* Mobile: stack logo above info */
@media (max-width: 480px) {
    .meets-container .meet-card-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .meets-container .meet-card-logo-xl {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        height: auto;
    }
}

/* Sidebar lists: Recently Viewed + Favorites */
.recently-viewed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px; /* compact row */
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7; /* subtle delineation */
    text-decoration: none;
    color: inherit;
}

.recently-viewed-item:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.recently-viewed-avatar {
    width: 56px;  /* larger logos */
    height: 56px;
    border-radius: 10px;
    object-fit: contain; /* preserve full logo */
    background: #fff;
    flex-shrink: 0;
}

.recently-viewed-info {
    flex: 1;
    min-width: 0;
}

.recently-viewed-info h4 {
    margin: 0;
    font-size: 14px; /* smaller title */
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.recently-viewed-info p {
    margin: 0;
    font-size: 11px; /* smaller meta */
}

.recently-viewed-badge {
    background: #e7f1ff;
    color: #1d4ed8;
    font-size: 10px; /* compact badge */
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.space-y-md > * + * { margin-top: 12px; }

@media (max-width: 1200px) {
    .recently-viewed-avatar { width: 50px; height: 50px; }
    .recently-viewed-info h4 { font-size: 13px; }
}

@media (max-width: 768px) {
    .recently-viewed-item { padding: 10px; }
    .recently-viewed-avatar { width: 44px; height: 44px; }
    .recently-viewed-info h4 { font-size: 12px; }
}

/* For tables with avatars */
.results-table-with-avatar th:first-child,
.results-table-with-avatar td:first-child {
    padding: 8px 4px;
    text-align: center;
    width: 50px;
}

/* Give athlete name column more relative space */
.results-table-with-avatar th:nth-child(3),
.results-table-with-avatar td:nth-child(3) {
    width: auto;
    text-align: left;
    padding-left: 8px;
}

/* Added styles from instruction 10 */
.home-page-container .container > div:not(.hero-section):not(.newsletter-section) {
    margin-bottom: 3rem;
}

.home-page-container .hero-section {
    margin-bottom: 2rem;
}

/* Added styles from instruction 6 */
.upcoming-meets-section {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.upcoming-meets-section h2 {
    position: relative;
    z-index: 2;
}

/* Added styles from instruction 5 */
.results-table-with-avatar {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ensuring main content elements have the solid border */
.leaderboard-container,
.meet-card,
.filters-container,
.newsletter-section,
.pagination .page-item .page-link,
.event-header-dropdown,
.event-dropdown-menu {
    border: 2px solid #000;
}

/* ==========================================================================
   iPhone XR Specific Fix (414px width)
   ========================================================================== */
@media screen and (min-width: 300px) and (max-width: 500px) {
    .container, .past-meets-page {
        padding-left: 3px;
        padding-right: 3px;
    }
    
    /* Styles for responsive tables on mobile */
    .athlete-avatar.avatar-sm {
        width: 30px;
        height: 30px;
    }
    
    /* Smaller avatar and lane columns */
    .results-table-with-avatar th:first-child,
    .results-table-with-avatar td:first-child {
        width: 30px;
        min-width: 30px;
        max-width: 30px;
        padding: 2px 1px;
    }
    
    .results-table-with-avatar th:nth-child(2),
    .results-table-with-avatar td:nth-child(2) {
        width: 35px;
        min-width: 35px;
        max-width: 35px;
        padding: 4px 2px;
    }
    
    /* Athlete name still gets priority */
    .results-table-with-avatar th:nth-child(4),
    .results-table-with-avatar td:nth-child(4) {
        min-width: 120px;
        padding-left: 5px;
        font-size: 0.75rem;
    }
    
    /* Tighter spacing for other columns */
    .results-table-with-avatar th:nth-child(5),
    .results-table-with-avatar td:nth-child(5) {
        width: 55px;
        min-width: 55px;
        max-width: 55px;
        padding: 4px 2px;
        font-size: 0.7rem;
    }
    
    .results-table-with-avatar th:nth-child(6),
    .results-table-with-avatar td:nth-child(6) {
        width: 30px;
        min-width: 30px;
        max-width: 30px;
        padding: 4px 2px;
        font-size: 0.7rem;
    }
    
    /* Smaller text in tables */
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 5px 2px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Time Difference Display
   ========================================================================== */
.time-difference {
    display: block; /* Ensure it appears on its own line */
    font-size: 0.8em; /* Make it slightly smaller */
    margin-top: 2px;
}

/* Ensure text-success and text-danger have enough contrast if needed */
.text-success {
    color: #28a745 !important; /* Bootstrap success green */
}

.text-danger {
    color: #dc3545 !important; /* Bootstrap danger red */
}

/* Lane allocation table styles */
.event-seeding-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-seeding-table th {
    background-color: #333;
    color: white;
    padding: 6px 8px;
    text-align: left;
    font-size: 0.9rem;
}

.event-seeding-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.event-seeding-table tr:last-child td {
    border-bottom: none;
}

.event-seeding-table tr:nth-child(even) {
    background-color: rgba(0,0,0,0.05);
}

/* Updated media queries for both table styles */
@media (max-width: 768px) {
    .event-seeding-table th,
    .lane-allocation-table th {
        padding: 4px 6px;
        font-size: 0.85rem;
    }
    
    .event-seeding-table td,
    .lane-allocation-table td {
        padding: 3px 6px;
        font-size: 0.85rem;
    }
    
    /* Also reduce padding in leaderboard table */
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 4px 3px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .event-seeding-table th,
    .lane-allocation-table th {
        padding: 3px 4px;
        font-size: 0.8rem;
    }
    
    .event-seeding-table td,
    .lane-allocation-table td {
        padding: 2px 4px;
        font-size: 0.8rem;
    }
    
    /* Also reduce padding in leaderboard table */
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 3px 2px;
        font-size: 0.8rem;
    }
}

/* Additional iPhone XR specific fix */
@media screen and (min-width: 300px) and (max-width: 500px) {
    .event-seeding-table th,
    .lane-allocation-table th,
    .leaderboard-table th {
        padding: 2px 3px;
        font-size: 0.75rem;
    }
    
    .event-seeding-table td,
    .lane-allocation-table td,
    .leaderboard-table td {
        padding: 2px 3px;
        font-size: 0.75rem;
    }
}

/* Race status styling */
.race-status {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    margin: 10px 0;
}

.race-status.in-progress {
    background-color: #ffc107;
    color: #212529;
    animation: pulse 2s infinite;
}

.race-status.completed {
    background-color: #28a745;
    color: white;
}

.race-status.not-started {
    background-color: #6c757d;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Heat status indicators */
.heat-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.heat-status-indicator.not-started {
    background-color: #6c757d;
}

.heat-status-indicator.in-progress {
    background-color: #ffc107;
    animation: pulse-small 2s infinite;
}

.heat-status-indicator.completed {
    background-color: #28a745;
}

.heat-status-indicator.scored {
    background-color: #007bff;
}

.heat-status-indicator.unseeded {
    background-color: #6c757d;
    border: 2px solid #495057;
}

.heat-status-indicator.seeded {
    background-color: #17a2b8;
}

@keyframes pulse-small {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Awaiting results cell styling */
.awaiting-results {
    color: #ffc107;
    font-style: italic;
}

/* Table row statuses */
.leaderboard-table.in-progress-event thead th {
    background-color: #ffc107;
    color: #212529;
}

.leaderboard-table.completed-event thead th {
    background-color: #28a745;
    color: white;
}

.leaderboard-table.not-started-event thead th {
    background-color: #6c757d;
    color: white;
}

/* Meet status card */
.meet-status-card {
    background-color: #127580;
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.meet-status-card h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.meet-status-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

.meet-status-card.live {
    position: relative;
    overflow: hidden;
}

.meet-status-card.live::before {
    content: "LIVE";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.meet-status-card.completed {
    background-color: #FFC3A1;
}

.meet-status-card.upcoming {
    background-color: #6c757d;
}

/* ==========================================================================
   BOTTOM NAVIGATION (PWA MODE)
   ========================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.bottom-nav-container {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    padding-bottom: 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #7a7a7a;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.bottom-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #ff3301;
    text-decoration: none;
    background-color: rgba(255, 51, 1, 0.1);
}

.bottom-nav-item.active .material-icons {
    color: #ff3301;
    transform: scale(1.1);
}

.bottom-nav-item.active .bottom-nav-label {
    color: #ff3301;
    font-weight: 600;
}

/* Touch feedback */
.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .bottom-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .bottom-nav-item .material-icons {
        font-size: 22px;
    }
    
    .bottom-nav-label {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .bottom-nav-item {
        padding: 4px 6px;
        min-width: 45px;
    }
    
    .bottom-nav-item .material-icons {
        font-size: 20px;
    }
    
    .bottom-nav-label {
        font-size: 9px;
    }
}

/* Split Arrow Button Styles */
.split-arrow-btn {
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.split-arrow-btn:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateX(2px);
}

.split-arrow-btn .material-icons {
    font-size: 14px !important;
    line-height: 1;
}

/* Mobile optimization for split arrow */
@media (max-width: 768px) {
    .split-arrow-btn {
        padding: 1px 3px;
        min-width: 18px;
        height: 18px;
        margin-left: 3px !important;
    }
    
    .split-arrow-btn .material-icons {
        font-size: 11px !important;
    }
}

/* Navigation Authentication Buttons */
.nav-auth-section {
    display: flex;
    align-items: center;
    margin-left: 16px;
}


.nav-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #E5E7EB;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(55, 65, 81, 0.18);
    white-space: nowrap;
}

.nav-auth-btn:hover {
    background: #D1D5DB;
    color: #111827;
    text-decoration: none;
}

.nav-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(55, 65, 81, 0.16);
}

.nav-auth-btn.nav-login-btn {
    background: #FF7D5C;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 125, 92, 0.25);
}

.nav-auth-btn.nav-login-btn:hover {
    background: #FF9B82;
    color: white;
}

.nav-auth-btn.nav-login-btn:active {
    box-shadow: 0 1px 3px rgba(255, 125, 92, 0.2);
}

.nav-auth-btn.nav-logout-btn {
    color: #374151;
}

.nav-auth-btn .material-icons {
    font-size: 18px;
}

.nav-auth-text {
    font-size: 0.9rem;
}

/* Mobile - hide auth in nav center */
@media (max-width: 768px) {
    .nav-auth-section {
        display: none;
    }

    .nav-mobile-auth {
        margin-left: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }


    .nav-mobile-auth-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 16px;
        background: #E5E7EB;
        color: #374151;
        text-decoration: none;
        border: none;
        box-shadow: 0 1px 3px rgba(55, 65, 81, 0.18);
        transition: all 0.2s ease;
    }

    .nav-mobile-auth-btn:hover {
        background: #D1D5DB;
        color: #111827;
        text-decoration: none;
    }

    .nav-mobile-auth-btn.nav-login-btn {
        background: #FF7D5C;
        color: white;
        box-shadow: 0 2px 4px rgba(255, 125, 92, 0.25);
    }


    .nav-mobile-auth-btn.nav-login-btn:hover {
        background: #FF9B82;
        color: white;
    }

    .nav-mobile-auth-btn .material-icons {
        font-size: 18px;
    }

    .nav-mobile-auth-form {
        margin: 0;
    }
}