/* ========================================
   RESPONSIVE TYPOGRAPHY & SCALING FIX
   Add this at the TOP of your CSS file
   ======================================== */

/* Base HTML font-size using clamp for fluid scaling */
html {
    font-size: clamp(14px, 1vw, 16px);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Body base styles */
body {
    font-size: 1rem;
    /* Now relative to html font-size */
    line-height: 1.6;
}

/* ========================================
   NAVBAR RESPONSIVE FIXES
   ======================================== */

.navbar-brand-text-enhanced {
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    /* Scales between 16px-20px */
    letter-spacing: 0.3px;
}

.navbar-logo-enhanced {
    width: clamp(40px, 4vw, 48px);
    /* Scales between 40px-48px */
    height: clamp(40px, 4vw, 48px);
}

.nav-link-enhanced {
    font-size: clamp(0.875rem, 1vw, 1rem);
    /* Scales between 14px-16px */
    padding: 0.5rem 0.75rem !important;
}

.welcome-user-box {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
}

.admin-badge-enhanced {
    font-size: clamp(0.65rem, 0.75vw, 0.75rem);
    padding: 0.25rem 0.65rem;
}

/* ========================================
   PAGE TITLES RESPONSIVE
   ======================================== */

.page-title,
.page-title-sporty,
.page-title-accent,
.page-title-minimal,
.page-title-dynamic {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    /* Scales smoothly */
    padding: clamp(25px, 4vh, 50px) clamp(15px, 2vw, 40px);
    letter-spacing: clamp(1px, 0.15vw, 3px);
}

.page-title-gradient {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.brm-page-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* ========================================
   EVENT CARDS RESPONSIVE
   ======================================== */

.event-card-title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.event-card-description {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.event-status-badge {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    padding: clamp(5px, 0.5vw, 6px) clamp(12px, 1vw, 14px);
}

.btn-view-event {
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding: clamp(10px, 1.2vh, 12px) clamp(20px, 2vw, 24px);
}

.registration-date {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* ========================================
   REGISTERED EVENT CARDS
   ======================================== */

.registered-event-card-title {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.event-info-text {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.badge-status {
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    padding: clamp(5px, 0.6vh, 6px) clamp(10px, 1vw, 12px);
}

/* ========================================
   STRAVA PROFILE CARD
   ======================================== */

.athlete-name-enhanced {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.athlete-username {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.athlete-location-enhanced {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    padding: clamp(6px, 0.8vh, 8px) clamp(16px, 1.5vw, 20px);
}

.stat-label {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
}

.stat-value {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.detail-value {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
}

/* ========================================
   MONTHLY CARDS
   ======================================== */

.month-name {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.year-number {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.activity-value strong {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

.activity-label {
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
}

/* ========================================
   ACTIVITIES TABLE
   ======================================== */

.activities-table-sporty {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.activities-table-sporty th {
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    padding: clamp(12px, 1.5vh, 16px) clamp(10px, 1vw, 12px);
}

.activities-table-sporty td {
    padding: clamp(12px, 1.5vh, 16px) clamp(10px, 1vw, 12px);
}

.value-main {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.btn-strava-view {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    padding: clamp(6px, 0.8vh, 8px) clamp(12px, 1.5vw, 16px);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-control-sporty,
.form-control {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    padding: clamp(10px, 1.2vh, 12px) clamp(14px, 1.5vw, 16px);
}

.form-label,
.form-group-sporty label {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.btn-submit-sporty {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    padding: clamp(14px, 1.8vh, 16px) clamp(40px, 4vw, 48px);
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-container h2,
.login-header h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.btn-google,
.btn-strava,
.btn-primary {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    height: clamp(44px, 5vh, 48px);
}

/* ========================================
   BRM EVENTS TABLE
   ======================================== */

.city-header {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    padding: clamp(0.5rem, 1vh, 0.75rem) clamp(1rem, 1.5vw, 1.5rem);
}

.brm-events-table thead th {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    padding: clamp(1rem, 1.5vh, 1.25rem) clamp(0.75rem, 1vw, 1rem);
}

.event-link {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

/* ========================================
   SPECIFIC SCREEN SIZE ADJUSTMENTS
   ======================================== */

/* Large desktops (1920x1200 with 150% scaling) */
@media (min-width: 1440px) and (max-width: 1920px) {
    html {
        font-size: 14px;
        /* Reduce base size */
    }

    .navbar-brand-text-enhanced {
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .event-card-title {
        font-size: 1.2rem;
    }
}

/* High DPI displays (Retina, 4K) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    html {
        font-size: 15px;
    }
}

/* Windows 150% scaling detection */
@media screen and (min-width: 1280px) and (max-width: 1366px) {
    html {
        font-size: 13px;
    }
}

/* Standard tablets and small laptops */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
}

/* Tablets portrait */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar-brand-text-enhanced {
        font-size: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
        padding: 30px 20px;
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .page-title {
        font-size: 1.5rem;
        padding: 25px 15px;
    }

    .navbar-logo-enhanced {
        width: 36px;
        height: 36px;
    }

    .nav-link-enhanced {
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
}

/* ========================================
   MODAL RESPONSIVE
   ======================================== */

.modal-title-sporty {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.modal-body-sporty {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state-title {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
}

.empty-state-description {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.empty-state-icon {
    font-size: clamp(60px, 8vw, 80px);
}

/* ========================================
   BUTTON CONSISTENCY & ALIGNMENT FIX
   ======================================== */

.btn,
button {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    vertical-align: middle;
}

.btn-lg {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    padding: clamp(0.75rem, 1vh, 0.875rem) clamp(1.25rem, 2vw, 1.5rem);
}

.btn-sm {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
}

/* Fix for hero section buttons specifically */
.hero-section .btn,
.video-hero .btn,
.parallax-hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 1.2vh, 1rem) clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Ensure outline button keeps its border */
.btn-outline-light {
    border: 2px solid white !important;
    color: white !important;
    background: transparent !important;
}

.btn-outline-light:hover {
    background: white !important;
    color: #333 !important;
    border-color: white !important;
}

.btn-outline-dark {
    border: 2px solid #333 !important;
}

/* Ensure button text is centered */
.btn-primary,
.btn-outline-light,
.btn-outline-dark {
    text-align: center;
    white-space: nowrap;
}

/* Fix line-height issues */
.btn-lg {
    line-height: 1.5;
}

/* Ensure buttons align horizontally when side by side */
.btn+.btn {
    vertical-align: middle;
}


/* ========================================
   CONTAINER MAX-WIDTH ADJUSTMENTS
   ======================================== */

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1320px;
        /* Prevent content from becoming too wide */
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    html {
        font-size: 12pt;
    }
}

/* ========================================
   END OF RESPONSIVE FIX
   ======================================== */

.form-container {
    width: 100%;
    margin: 0 auto;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}





.custom-navbar {
    background: #3D4C5E;
    /* Cobalt Gray */
    position: relative;
    padding: 1rem 0;
    color: white;
}

.custom-navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
}


.navbar-logo {
    height: 60px;
    margin-right: 10px;
}

.navbar-brand-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    vertical-align: middle;
}

.navbar-separator {
    border: none;
    border-top: 2px solid #dee2e6;
    margin: 0;
}

.nav-tabs .nav-link:hover {
    background-color: #4da5f8;
    border-radius: 0.25rem;
    /* optional rounded corners */
    color: #ffffff;
}

.nav-tabs .nav-item {
    flex: 1 1 auto;
    text-align: center;
}

.nav-tabs .nav-link {
    width: 100%;
    border-bottom: 2px solid #0d6efd;
}

/* Active tab styling */
.nav-tabs .nav-link.active {
    border-bottom: 4px solid #0d6efd;
    background-color: #e0f0ff;
    border-radius: 0.25rem;
    color: #000;
    /* Ensure text is readable */
    font-weight: 600;
    /* Optional emphasis */
}

.strava-profile-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.strava-profile-label {
    font-weight: 500;
    color: #495057;
}

table.ride-table thead th {
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

table.ride-table tbody td {
    border-bottom: 1px solid #dee2e6;
    border-top: none;
}

table.ride-table tbody tr:last-child td {
    border-bottom: 2px solid #dee2e6;
}

table.ride-table td,
table.ride-table th {
    vertical-align: middle;
}

.strava-btn {
    background-color: #fc4c02;
    color: white;
    border: none;
}

.strava-btn:hover {
    background-color: #e04401;
    color: white;
}

.hover-shadow:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.01);
    transition: 0.2s;
}

.video-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* darken video for contrast */
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.parallax-hero {
    height: 100vh;
    background-image: url("/images/your-city-cycling.jpg");
    /* Replace with your image path */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.monthly-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monthly-card:hover {
    transform: scale(1.05);
    /* Popup effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
    z-index: 1;
}

@keyframes rainbow {
    0% {
        color: #e74c3c;
    }

    25% {
        color: #f39c12;
    }

    50% {
        color: #27ae60;
    }

    75% {
        color: #3498db;
    }

    100% {
        color: #9b59b6;
    }
}

.rainbow-text {
    animation: rainbow 5s infinite;
}

.bg-purple {
    background-color: #6f42c1;
}

.bg-teal {
    background-color: #20c997;
}

.bg-orange {
    background-color: #fd7e14;
}

.bg-pink {
    background-color: #d63384;
}







/* Increase checkbox size and add border color */
.form-check-input.custom-checkbox {
    transform: scale(1.5);
    /* make it bigger */
    border: 2px solid #0d6efd;
    /* Bootstrap primary blue border */
}

/* Optional: When checked, change checkbox background */
.form-check-input.custom-checkbox:checked {
    background-color: #0d6efd;
    /* Bootstrap primary blue */
    border-color: #0d6efd;
}

.hero-section {
    position: relative;
    min-height: 50vh;
    /* Adjust height for web/mobile balance */
    background: url('/images/cycling-event.jpeg') center center / cover no-repeat;
    padding: 3rem 1rem;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
}

.hero-section .container {
    position: relative;
    z-index: 2;
    /* Keep text above overlay */
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 2rem 1rem;
        background-position: center top;
        /* Show top of image on mobile */
    }
}


.association-strip {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.association-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.association-label {
    font-size: 14px;
    color: #6b7280;
    /* neutral gray */
    white-space: nowrap;
}

.association-logos {
    display: flex;
    align-items: center;
    gap: 32px;
}

.association-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.association-logo {
    height: 100px;
    /* KEY: lock height, not width */
    width: auto;
    max-width: 140px;

    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.association-logo:hover {
    opacity: 1;
}

/* Mobile */
@media (max-width: 640px) {
    .association-container {
        flex-direction: column;
        gap: 12px;
    }

    .association-logos {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .association-logo {
        height: 36px;
        max-width: 120px;
    }
}


/* Card styling */
.strava-profile-card {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}

/* Header section */
.strava-profile-card-header {
    background-color: #009688;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
}

.strava-profile-card-header img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: -65px;
    background: white;
}

.strava-profile-card-header h2 {
    margin: 15px 0 5px;
    font-size: 24px;
    font-weight: bold;
}

.strava-profile-card-header p {
    margin: 0;
    font-size: 14px;
}

/* Details section */
.strava-profile-card-details {
    padding: 20px;
}

.strava-profile-card-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.strava-profile-card-label {
    flex: 0 0 40%;
    font-weight: bold;
    color: #009688;
}

.strava-profile-card-value {
    flex: 1;
}

/* Remove last border */
.strava-profile-card-row:last-child {
    border-bottom: none;
}


.accordion-button {
    font-size: 1.1rem;
}

.accordion-button .badge {
    font-size: 0.9rem;
}

.accordion-button::after {
    margin-left: auto;
}

.event-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-size: 1rem;
    font-weight: 600;
}





.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 16px;
    color: #555;
    background-color: #fff;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.google-btn img {
    height: 20px;
    margin-right: 8px;
}

.google-btn:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-orange {
    background-color: #FF6600;
    /* bright orange */
    color: #ffffff;
    /* white text */
    font-weight: bold;
    border-radius: 0.375rem;
    /* rounded corners */
    border: none;
    transition: background-color 0.3s;
}

.btn-orange:hover {
    background-color: #e65c00;
    /* slightly darker on hover */
    color: #ffffff;
}

.bar-ride {
    background-color: #28a745 !important;
    /* vibrant green */
}

.bar-run {
    background-color: #007bff !important;
    /* bright blue */
}

.bar-walk {
    background-color: #ffc107 !important;
    /* vivid yellow */
}

.bar-secondary {
    background-color: #6c757d !important;
    /* gray - no activity */
}

.bar-other {
    background-color: #17a2b8 !important;
    /* teal - other activities */
}

/* Make text smaller for mobile */
@media (max-width: 576px) {
    .fs-6 {
        font-size: 12px;
    }

    .fs-7 {
        font-size: 11px;
    }

    .card-body {
        padding: 6px !important;
    }

    .activity-icon .fs-4 {
        font-size: 18px;
        /* shrink icons */
    }
}


/* ========================================
   ENHANCED NAVBAR STYLES
   Add these to your existing CSS file
   ======================================== */

/* Base Navbar Enhancement */
.custom-navbar-enhanced {
    /* Option 1: Dark Athletic (Recommended for sports) */
    /* background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%); */

    /* Option 2: Deep Ocean Blue - Uncomment to use */
    /* background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%); */

    /* Option 3: Sunset Orange/Red - Uncomment to use */
    /* background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #dc2626 100%); */

    /* Option 4: Forest Green - Uncomment to use */
    /* background: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #22c55e 100%); */

    /* Option 5: Midnight Blue - Uncomment to use */
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Keep your existing gradient line */
.custom-navbar-enhanced::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
}

/* Logo Enhancement */
.logo-wrapper {
    position: relative;
}

.navbar-logo-enhanced {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand-enhanced:hover .navbar-logo-enhanced {
    transform: scale(1.05) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Brand Text */
.navbar-brand-text-enhanced {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    transition: text-shadow 0.3s ease;
}

.navbar-brand-enhanced:hover .navbar-brand-text-enhanced {
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.4);
}

/* Navigation Links */
.nav-link-enhanced {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-enhanced:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateY(-2px);
}

.nav-link-enhanced.active {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    font-weight: 600;
}

.nav-link-enhanced.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: white;
    border-radius: 2px 2px 0 0;
}

/* Welcome User Box */
.welcome-user-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.25rem;
}

.user-avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.user-profile-link {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.user-profile-link:hover {
    opacity: 0.8;
}

.user-profile-link strong {
    font-weight: 600;
}

/* Logout Button */
.btn-logout-enhanced {
    background: none;
    border: none;
    color: white !important;
    font-weight: 500;
    padding: 0;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.btn-logout-enhanced:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* Login Button */
.btn-login-enhanced {
    background: white !important;
    color: #1e293b !important;
    /* Matches navbar dark color */
    font-weight: 600 !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 20px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin: 0.25rem;
}

.btn-login-enhanced:hover {
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #0f172a !important;
}

/* Admin Badge */
.admin-badge-enhanced {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Admin Dropdown */
.dropdown-menu-enhanced {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-menu-enhanced .dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-menu-enhanced .dropdown-item:hover {
    background: linear-gradient(135deg, #334155, #475569);
    color: white;
}

.dropdown-menu-enhanced .dropdown-item i {
    color: inherit;
}

/* Impersonation Stop Button */
.btn-impersonate-stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.btn-impersonate-stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.btn-impersonate-stop:active {
    transform: translateY(0);
}

/* Pulse animation for impersonation button */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.7);
    }
}

.btn-impersonate-stop {
    animation: pulse-glow 2s infinite;
}

/* Mobile Toggler Enhancement */
.navbar-toggler-enhanced {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler-enhanced:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.navbar-toggler-enhanced:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link-enhanced {
        margin: 0.25rem 0;
    }

    .welcome-user-box {
        margin: 0.5rem 0;
        width: 100%;
    }

    .btn-login-enhanced {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .btn-impersonate-stop {
        width: 100%;
        margin: 0.5rem 0;
    }

    .admin-badge-enhanced {
        display: inline-block;
    }
}

/* Smooth collapse animation */
.navbar-collapse {
    transition: height 0.3s ease;
}

/* Icons alignment */
.nav-link-enhanced i,
.btn-login-enhanced i,
.btn-impersonate-stop i {
    vertical-align: middle;
}

/* Add hover effect to all clickable items */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    cursor: pointer;
}



/* ========================================
   ENHANCED PAGE TITLE STYLES
   Choose one option and add to your CSS
   ======================================== */

/* OPTION 1: Modern Athletic (Recommended) */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.page-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
}

.page-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* OPTION 2: Bold Sporty Banner */
.page-title-sporty {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin: 0 0 40px 0;
    padding: 50px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    box-shadow:
        0 10px 30px rgba(30, 58, 138, 0.4),
        inset 0 -5px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-title-sporty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
}

/* OPTION 3: Energetic Accent */
.page-title-accent {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #fff;
    border-left: 8px solid #FF6F61;
    border-right: 8px solid #00CED1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.page-title-accent::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 6px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
    border-radius: 2px;
}

/* OPTION 4: Gradient Text Hero */
.page-title-gradient {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    background: linear-gradient(135deg, #FF6F61, #FFD700, #00CED1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.page-title-gradient-bg {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 50px 20px;
    margin-bottom: 40px;
}

/* OPTION 5: Minimal Professional */
.page-title-minimal {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.page-title-minimal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    z-index: -1;
}

.page-title-minimal span {
    background: #fff;
    padding: 0 30px;
    position: relative;
}

.page-title-minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
    border-radius: 2px;
}

/* OPTION 6: Dynamic Sports Banner */
.page-title-dynamic {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    padding: 45px 20px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.95)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0 Q300,60 600,30 T1200,40 L1200,120 L0,120 Z"/></svg>');
    background-size: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    border-bottom: 5px solid;
    border-image: linear-gradient(to right, #FF6F61, #FFD700, #00CED1) 1;
}

.header-calendar-icon {
    margin-right: 6px;
    /* adjust 4–10px based on taste */
    font-size: 1.5rem;
}



.event-status-upcoming {
    background: #f59e0b;
    color: white;
}

.event-status-active {
    background: #10b981;
    color: white;
}

.event-status-completed {
    background: #9333ea;
    color: white;
}

/* Common styling */
.event-status-bar {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}




/* Mobile Responsive */
@media (max-width: 768px) {

    .page-title,
    .page-title-sporty,
    .page-title-accent,
    .page-title-gradient,
    .page-title-minimal,
    .page-title-dynamic {
        font-size: 1.75rem;
        padding: 30px 15px;
        letter-spacing: 2px;
    }

    .page-title-gradient {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    .page-title,
    .page-title-sporty,
    .page-title-accent,
    .page-title-gradient,
    .page-title-minimal,
    .page-title-dynamic {
        font-size: 1.5rem;
        padding: 25px 10px;
        letter-spacing: 1px;
    }

    .page-title-gradient {
        font-size: 1.75rem;
    }
}

.leaderboard-header {
    margin-top: 40px;
    margin-bottom: 50px;
}

.leaderboard-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1e293b;
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 32px;
}

.leaderboard-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 160px;
    height: 5px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
    border-radius: 3px;
}


/* ========================================
   ENHANCED EVENT CARDS STYLES
   Add these to your existing CSS file
   Matches your Midnight Blue theme
   ======================================== */

/* Fix for overlapping title - Multiple approaches */
.page-title-accent {
    margin-bottom: 40px !important;
    z-index: 1;
}

.page-title-accent+* {
    margin-top: 0 !important;
    padding-top: 20px;
    clear: both;
}

.event-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.event-alert-box {
    border: 1px solid #0891b2;
    border-left: 4px solid #0891b2;
    border-radius: 12px;
}

/* Ensure empty state doesn't overlap */
.empty-state-card {
    margin-top: 20px;
    clear: both;
}

/* Event Card Link */
.event-card-link {
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}

.event-card-link:hover {
    transform: translateY(-8px);
}

/* Main Event Card */
.event-card-enhanced {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-enhanced:hover {
    box-shadow: 0 12px 32px rgba(12, 74, 110, 0.2);
}

/* Image Wrapper */
.event-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card-enhanced:hover .event-card-image {
    transform: scale(1.08);
}

/* Gradient Overlay on Image */
.event-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

/* Status Badge */
.event-status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-status-badge.badge-open {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

.event-status-badge.badge-closed {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

/* No Image Fallback */
.event-card-no-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-card-no-image i.bi-calendar-event {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
}

/* Status badge for no-image fallback */
.event-card-no-image .event-status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Card Content */
.event-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Event Title */
.event-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Description */
.event-card-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.event-card-footer {
    margin-top: auto;
}

/* Registration Info */
.registration-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0891b2;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.registration-label {
    font-size: 0.85rem;
    color: #0c4a6e;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.registration-date {
    font-size: 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.registration-time {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Action Button */
.btn-view-event {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.3);
}

.btn-view-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 74, 110, 0.4);
}

.btn-view-event.btn-disabled {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-view-event.btn-disabled:hover {
    transform: none;
}

/* Empty State */
.empty-state-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px dashed #cbd5e1;
}

.empty-state-icon {
    font-size: 80px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.empty-state-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 24px;
}

.empty-state-emoji {
    font-size: 2rem;
    margin-top: 20px;
}

/* Grid Spacing */
.g-4 {
    gap: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .event-card-image-wrapper,
    .event-card-no-image {
        height: 200px;
    }

    .event-card-content {
        padding: 20px;
    }

    .event-card-title {
        font-size: 1.2rem;
    }

    .event-card-description {
        font-size: 0.9rem;
    }

    .empty-state-card {
        padding: 40px 24px;
    }

    .empty-state-icon {
        font-size: 60px;
    }

    .empty-state-title {
        font-size: 1.5rem;
    }

    .empty-state-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    .event-card-image-wrapper,
    .event-card-no-image {
        height: 180px;
    }

    .event-status-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .registration-info {
        padding: 12px 14px;
    }

    .btn-view-event {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Hover Effects */
@media (hover: hover) {
    .event-card-enhanced:hover .event-card-title {
        color: #0891b2;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card-enhanced {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Stagger animation for multiple cards */
.col-12:nth-child(1) .event-card-enhanced {
    animation-delay: 0.1s;
}

.col-12:nth-child(2) .event-card-enhanced {
    animation-delay: 0.2s;
}

.col-12:nth-child(3) .event-card-enhanced {
    animation-delay: 0.3s;
}

.col-12:nth-child(4) .event-card-enhanced {
    animation-delay: 0.4s;
}

.col-12:nth-child(5) .event-card-enhanced {
    animation-delay: 0.5s;
}

.col-12:nth-child(6) .event-card-enhanced {
    animation-delay: 0.6s;
}



/* ========================================
   Cycling Club Login Page - Sporty Theme
   ======================================== */
/* Cycling Club Login Page - Sporty Theme */

.login-container {
    max-width: 450px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Sporty accent strip */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
}

/* Cycling icon decoration */
.login-container::after {
    content: '🚴';
    position: absolute;
    font-size: 120px;
    top: -40px;
    right: -30px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.login-container h2 {
    color: #004E89;
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 20px;
}

.login-container h2::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
    border-radius: 2px;
}

.login-container .form-label {
    color: #004E89;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.login-container .form-control {
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.login-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.login-container .alert {
    border-radius: 10px;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.login-container .alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.login-container .text-danger {
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.login-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #FF6B35;
}

/* Primary login button */
.login-container .btn-primary {
    background: linear-gradient(135deg, #FF6B35, #F7931E) !important;
    border: none !important;
    color: white !important;
    border-radius: 10px;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.login-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #F7931E, #FF6B35) !important;
    color: white !important;
}

.login-container .btn-primary:active {
    transform: translateY(0);
}

/* Google button styling */
/* OR divider styling */
.login-container .text-center.my-3.text-muted {
    position: relative;
    color: #999;
    font-weight: 500;
}

.login-container .text-center.my-3.text-muted::before,
.login-container .text-center.my-3.text-muted::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #DDD;
}

.login-container .text-center.my-3.text-muted::before {
    left: 0;
}

.login-container .text-center.my-3.text-muted::after {
    right: 0;
}

/* Google button styling */
.login-container .btn-outline-dark {
    border: 2px solid #DDD;
    background: white;
    color: #444;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container .btn-outline-dark:hover {
    background: #f8f9fa;
    border-color: #CCC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #444;
}

.login-container .btn-outline-dark img {
    height: 20px;
    margin-right: 8px;
}

/* Orange signup button */
.login-container .btn-orange {
    background: linear-gradient(135deg, #F7931E, #FF6B35) !important;
    color: white !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-container .btn-orange:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.4);
    background: linear-gradient(135deg, #FF6B35, #F7931E) !important;
}

/* Forgot password link */
.login-container .text-warning {
    color: #F7931E !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-container .text-warning:hover {
    color: #FF6B35 !important;
    text-decoration: underline !important;
}

/* Small text styling */
.login-container small.text-muted {
    color: #888 !important;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }

    .login-container h2 {
        font-size: 1.75rem;
    }
}


/* ========================================
   REGISTERED EVENT CARDS - SIMPLE & FIXED
   ======================================== */

/* Card Link */
.registered-event-card-link {
    display: block;
    text-decoration: none;
}

.registered-event-card-link:hover {
    transform: translateY(-4px);
    transition: transform 0.2s;
}

/* Main Card */
.registered-event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.registered-event-card:hover {
    box-shadow: 0 8px 20px rgba(12, 74, 110, 0.15);
}

/* Header */
.registered-event-card-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.registered-event-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex: 1;
}

.registered-event-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-approved {
    background: #22c55e;
    color: white;
}

.status-pending {
    background: #fbbf24;
    color: #78350f;
}

.status-rejected {
    background: #ef4444;
    color: white;
}

.status-live {
    background: #ef4444;
    color: white;
}

/* Body */
.registered-event-card-body {
    padding: 20px;
}

.event-info-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.event-info-row:last-of-type {
    border-bottom: none;
}

.event-info-row i {
    color: #0891b2;
    font-size: 1.1rem;
    min-width: 20px;
    flex-shrink: 0;
}

.event-info-text {
    flex: 1;
    font-size: 0.95rem;
    color: #334155;
}

.event-info-text strong {
    color: #0c4a6e;
    font-weight: 600;
}

/* Category Box - FIXED HEIGHT */
.category-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0891b2;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    min-height: 100px;
    display: flex;
    gap: 12px;
}

.category-box i {
    color: #0c4a6e;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-box .event-info-text {
    color: #0c4a6e;
}

/* Divider */
.event-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 16px 0;
}

/* Inline Badge */
.badge-inline {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.badge-approved {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #78350f;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 991px) {
    .registered-event-card-header {
        flex-wrap: wrap;
    }

    .registered-event-card-title {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .category-box {
        min-height: 90px;
        padding: 14px;
    }
}

@media (max-width: 576px) {
    .event-info-row {
        flex-direction: column;
        gap: 6px;
    }

    .category-box {
        flex-direction: column;
        min-height: auto;
    }
}


/* ========================================
   STRAVA SUMMARY PAGE - SPORTY STYLING
   ======================================== */

/* Strava Connect Section */
.strava-connect-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 600px;
}

.strava-connect-section img {
    max-width: 280px;
    height: auto;
    transition: transform 0.3s ease;
}

.strava-connect-section img:hover {
    transform: scale(1.05);
}

/* Fetch Activities Card */
.fetch-activities-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 800px;
    border-left: 6px solid #0891b2;
}

.fetch-activities-card h4 {
    color: #0c4a6e;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fetch-activities-card h4::before {
    content: '📅';
    font-size: 1.8rem;
}

/* Fetch Form */
.fetch-form-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fetch-form-wrapper label {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
}

.fetch-form-wrapper input[type="date"] {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    max-width: 180px;
}

.fetch-form-wrapper input[type="date"]:focus {
    border-color: #0891b2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.fetch-form-wrapper .btn-primary {
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.3);
}

.fetch-form-wrapper .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 74, 110, 0.4);
}

.fetch-form-wrapper .btn-primary:disabled {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    cursor: not-allowed;
    box-shadow: none;
}

/* Fetch Count Info */
.fetch-info {
    width: 100%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 8px;
}

.fetch-info small {
    color: #78350f;
    font-weight: 500;
    font-size: 0.9rem;
}

.fetch-info strong {
    color: #78350f;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Alert Styling */
.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: none;
    border-left: 4px solid #22c55e;
    border-radius: 12px;
    padding: 16px 20px;
    color: #166534;
    font-weight: 500;
    margin: 20px auto;
    max-width: 800px;
}

/* Monthly Cards Grid */
.monthly-cards-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.monthly-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Empty State */
.empty-activities-state {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    border: 2px dashed #cbd5e1;
}

.empty-activities-state i {
    font-size: 80px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.empty-activities-state h3 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.empty-activities-state p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .strava-connect-section {
        padding: 40px 24px;
    }

    .fetch-activities-card {
        padding: 24px 20px;
    }

    .fetch-activities-card h4 {
        font-size: 1.3rem;
    }

    .fetch-form-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .fetch-form-wrapper input[type="date"],
    .fetch-form-wrapper .btn-primary {
        max-width: 100%;
        width: 100%;
    }

    .monthly-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .strava-connect-section {
        padding: 30px 20px;
    }

    .strava-connect-section img {
        max-width: 240px;
    }

    .fetch-activities-card {
        padding: 20px 16px;
    }

    .fetch-activities-card h4 {
        font-size: 1.2rem;
    }

    .empty-activities-state {
        padding: 60px 24px;
    }

    .empty-activities-state i {
        font-size: 60px;
    }

    .empty-activities-state h3 {
        font-size: 1.5rem;
    }
}



/* ========================================
   Monthly Card Link
   ======================================== */

.monthly-card-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.monthly-card-link:hover {
    transform: translateY(-8px);
}

/* Monthly Activity Card */
.monthly-activity-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.monthly-activity-card:hover {
    box-shadow: 0 12px 32px rgba(12, 74, 110, 0.2);
}

/* Card Header */
.monthly-card-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.monthly-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.month-badge {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.month-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.year-number {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 2px;
}

.view-details-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.monthly-activity-card:hover .view-details-icon {
    color: white;
    transform: scale(1.2);
}

/* Card Body */
.monthly-card-body {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Activity Item */
.activity-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    align-items: center;
}

.activity-icon {
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.monthly-activity-card:hover .activity-icon {
    transform: scale(1.15);
}

.activity-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.activity-value strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0c4a6e;
}

.activity-value .unit {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Progress Bar */
.activity-bar {
    grid-column: 2;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.activity-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.activity-ride .activity-progress {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.activity-run .activity-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.activity-walk .activity-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.activity-swim .activity-progress {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

/* Card Footer */
.monthly-card-footer {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e5e7eb;
}

.footer-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0c4a6e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monthly-card-footer i {
    font-size: 1.2rem;
    color: #0891b2;
    transition: transform 0.3s ease;
}

.monthly-activity-card:hover .monthly-card-footer i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 576px) {
    .monthly-card-header {
        padding: 20px 16px;
    }

    .month-name {
        font-size: 1.3rem;
    }

    .year-number {
        font-size: 0.85rem;
    }

    .monthly-card-body {
        padding: 20px 16px;
        gap: 16px;
    }

    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }

    .activity-item {
        grid-template-columns: 35px 1fr;
    }

    .activity-value strong {
        font-size: 1.2rem;
    }
}




/* ========================================
   ACTIVITIES PAGE - SPORTY STYLING
   ======================================== */

/* Back Button */
.activities-back-button {
    margin-bottom: 30px;
}

.btn-back-sporty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.3);
}

.btn-back-sporty:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 74, 110, 0.4);
    color: white;
}

.btn-back-sporty i {
    font-size: 1.3rem;
}

/* Page Header */
.activities-page-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 8px 24px rgba(12, 74, 110, 0.3);
    position: relative;
    overflow: hidden;
}

.activities-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.header-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.header-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 600;
}

.header-date i {
    font-size: 1.3rem;
}

/* Activity Sections */
.activities-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.activity-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Activity Type Header */
.activity-type-header {
    margin-bottom: 0;
}

.activity-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.activity-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 0;
}

.activity-header-ride {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.activity-header-walk {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.activity-header-run {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.activity-header-swim {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.activity-header-other {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.activity-header-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.activity-header-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.activity-header-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.activity-header-badge {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.badge-ride {
    color: #16a34a;
}

.badge-walk {
    color: #d97706;
}

.badge-run {
    color: #2563eb;
}

.badge-swim {
    color: #0891b2;
}

.badge-other {
    color: #4f46e5;
}

/* Activities Table Wrapper */
.activities-table-wrapper {
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .activities-page-header {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
    }

    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-date {
        justify-content: center;
        font-size: 1rem;
    }

    .activity-header {
        padding: 20px;
        flex-wrap: wrap;
    }

    .activity-header-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .activity-header-text h3 {
        font-size: 1.4rem;
    }

    .activity-header-badge {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .btn-back-sporty {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .activities-page-header {
        padding: 20px 16px;
    }

    .header-title {
        font-size: 1.3rem;
    }

    .activity-header {
        padding: 16px;
        gap: 12px;
    }

    .activity-header-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .activity-header-text h3 {
        font-size: 1.2rem;
    }

    .activity-count {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}




/* ========================================
   ACTIVITIES TABLE - SPORTY STYLING
   ======================================== */

.activities-table-container {
    overflow-x: auto;
    background: white;
}

.activities-table-sporty {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

/* Table Header */
.activities-table-sporty thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.activities-table-sporty thead tr {
    border-bottom: 3px solid #0891b2;
}

.activities-table-sporty th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    color: #0c4a6e;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.activities-table-sporty th i {
    display: block;
    font-size: 1.3rem;
    color: #0891b2;
    margin-bottom: 6px;
}

.activities-table-sporty th span {
    display: block;
}

/* Special styling for # column */
.col-number {
    width: 50px;
}

.col-number i {
    font-size: 1.1rem !important;
}

/* Table Body */
.activities-table-sporty tbody {
    background: white;
}

.activity-row {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.activity-row:hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(12, 74, 110, 0.1);
}

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

.activities-table-sporty td {
    padding: 16px 12px;
    text-align: center;
    color: #334155;
    vertical-align: middle;
}

/* Row Number */
.row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Date Column */
.date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.date-main {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 0.95rem;
}

.time-sub {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Value Columns (Distance, Speed, Elevation) */
.value-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c4a6e;
}

.unit {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    margin-left: 4px;
}

/* Time Column */
.time-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.time-moving {
    color: #0c4a6e;
    font-weight: 600;
}

.time-divider {
    color: #cbd5e1;
    font-weight: 700;
}

.time-elapsed {
    color: #64748b;
    font-weight: 500;
}

/* Strava Button */
.btn-strava-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fc4c02, #e04401);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(252, 76, 2, 0.3);
}

.btn-strava-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 76, 2, 0.4);
    color: white;
}

.btn-strava-view i {
    font-size: 1rem;
}

/* Empty State */
.activities-table-sporty tbody:empty::after {
    content: 'No activities found';
    display: block;
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .activities-table-sporty {
        font-size: 0.9rem;
    }

    .activities-table-sporty th,
    .activities-table-sporty td {
        padding: 12px 8px;
    }

    .activities-table-sporty th span {
        display: none;
    }

    .activities-table-sporty th i {
        margin-bottom: 0;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .activities-table-container {
        border-radius: 0;
        margin: 0 -15px;
    }

    .activities-table-sporty {
        font-size: 0.85rem;
    }

    .activities-table-sporty th,
    .activities-table-sporty td {
        padding: 10px 6px;
    }

    .row-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .value-main {
        font-size: 1rem;
    }

    .btn-strava-view {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .btn-strava-view span {
        display: none;
    }

    .date-main {
        font-size: 0.85rem;
    }

    .time-sub {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {

    .activities-table-sporty th,
    .activities-table-sporty td {
        padding: 8px 4px;
    }

    .col-number {
        width: 40px;
    }

    .activities-table-sporty th i {
        font-size: 1rem;
    }
}

/* Alternating Row Colors (subtle) */
.activity-row:nth-child(even) {
    background: #fafbfc;
}

.activity-row:nth-child(even):hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

/* Print Styles */
@media print {
    .btn-strava-view {
        display: none;
    }

    .activity-row:hover {
        transform: none;
        box-shadow: none;
    }
}




/* ========================================
   PROFILE PAGE - SPORTY STYLING
   Add this to your existing CSS file
   ======================================== */

/* Login Link */
.profile-login-link {
    text-align: center;
    margin: 20px 0;
    font-size: 1rem;
    color: #64748b;
}

.profile-login-link a {
    color: #0891b2;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
}

.profile-login-link a:hover {
    color: #0c4a6e;
    text-decoration: underline;
}

/* Google Signup Section */
.google-signup-section {
    max-width: 400px;
    margin: 30px auto;
}

.btn-google-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-google-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
    color: #334155;
}

.btn-google-signup img {
    width: 24px;
    height: 24px;
}

/* Signup Divider */
.signup-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.signup-divider span {
    background: white;
    padding: 0 20px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.signup-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}

/* Profile Form Card */
.profile-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 30px 0 60px;
}

/* Form Group */
.form-group-sporty {
    margin-bottom: 24px;
}

.form-group-sporty label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group-sporty label i {
    font-size: 1.1rem;
    color: #0891b2;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

/* Form Control */
.form-control-sporty {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.3s ease;
    background: white;
}

.form-control-sporty:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-control-sporty::placeholder {
    color: #cbd5e1;
}

.form-control-sporty.disabled-field {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Form Help Text */
.form-help-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-help-text i {
    color: #0891b2;
}

/* Error Text */
.error-text {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-text::before {
    content: '⚠';
    font-size: 1rem;
}

/* Password Change Section */
.password-change-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-change-password {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.3);
    width: fit-content;
}

.btn-change-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 74, 110, 0.4);
}

.google-login-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 12px 16px;
    border-radius: 10px;
    color: #0c4a6e;
    font-size: 0.9rem;
}

.google-login-note i {
    font-size: 1.2rem;
    color: #0891b2;
}

.password-success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    padding: 12px 16px;
    border-radius: 10px;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
}

.password-success-msg i {
    font-size: 1.2rem;
    color: #22c55e;
}

/* Submit Section */
.form-submit-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-submit-sporty {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit-sporty:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(12, 74, 110, 0.4);
}

.btn-submit-sporty i {
    font-size: 1.4rem;
}

/* Alert Messages */
.alert-danger-custom,
.alert-success-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
}

.alert-danger-custom {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-success-custom {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger-custom i,
.alert-success-custom i {
    font-size: 1.3rem;
}

/* Modal Styling */
.modal-sporty {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.modal-header-sporty {
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    padding: 24px 30px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-sporty {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}

.modal-title-sporty i {
    font-size: 1.5rem;
}

.btn-close-sporty {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-sporty:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-close-sporty i {
    color: white;
    font-size: 1.2rem;
}

.modal-body-sporty {
    padding: 30px;
}

.modal-footer-sporty {
    padding-top: 20px;
    border: none;
    display: flex;
    justify-content: center;
}

.btn-modal-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.3);
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 74, 110, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-form-card {
        padding: 24px 20px;
    }

    .btn-submit-sporty {
        width: 100%;
        justify-content: center;
    }

    .modal-header-sporty,
    .modal-body-sporty {
        padding: 20px;
    }

    .form-group-sporty label {
        font-size: 0.85rem;
    }

    .form-control-sporty {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .profile-form-card {
        padding: 20px 12px;
        border-radius: 16px;
    }

    .form-group-sporty {
        margin-bottom: 18px;
    }

    .form-group-sporty label {
        font-size: 0.8rem;
        gap: 6px;
    }

    .form-group-sporty label i {
        font-size: 0.95rem;
    }

    .form-control-sporty {
        padding: 9px 10px;
        font-size: 0.85rem;
    }

    .btn-submit-sporty {
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    .btn-submit-sporty i {
        font-size: 1.2rem;
    }
}




/* ========================================
   ENHANCED STRAVA PROFILE CARD - BALANCED THEME
   ======================================== */

.strava-profile-card-enhanced {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: white;
}

/* Header with Athlete Photo - Balanced Colors */
.strava-card-header-enhanced {
    position: relative;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
    padding: 60px 40px 80px;
    text-align: center;
    overflow: hidden;
}

.strava-card-header-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.strava-card-header-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Strava Logo Badge - Subtle Orange Accent */
.strava-logo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fc4c02;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border: 2px solid #fc4c02;
}

.strava-logo-badge i {
    font-size: 1.2rem;
}

/* Premium Badge - Gold Theme */
.premium-badge-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 2;
}

.premium-badge-overlay i {
    font-size: 1.1rem;
}

/* Athlete Photo */
.athlete-photo-wrapper {
    position: relative;
    display: inline-block;
    z-index: 2;
}

.athlete-photo-enhanced {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: white;
}

.athlete-status-dot {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #22c55e;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

/* Athlete Name & Location */
.athlete-name-enhanced {
    margin: 20px 0 8px;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.athlete-username {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.athlete-username::before {
    content: '@';
    font-weight: 700;
}

.athlete-location-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.athlete-location-enhanced i {
    font-size: 1.1rem;
}

/* Stats Grid - Unified Blue Theme */
.strava-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin-top: -40px;
    padding: 0 40px 30px;
    position: relative;
    z-index: 3;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.stat-card {
    background: white;
    padding: 24px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transform: translateY(-4px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1;
}

/* Details Section */
.strava-details-enhanced {
    padding: 30px 40px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #0891b2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.15);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-label i {
    color: #0891b2;
    font-size: 1.1rem;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0c4a6e;
}

.detail-value.gender-male {
    color: #3b82f6;
}

.detail-value.gender-female {
    color: #ec4899;
}

/* Action Footer */
.strava-card-footer-enhanced {
    padding: 24px 40px;
    background: white;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #22c55e;
    font-weight: 600;
}

.sync-status i {
    font-size: 1.2rem;
}

.sync-status.syncing {
    color: #f59e0b;
}

.sync-status.syncing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-actions {
    display: flex;
    gap: 12px;
}

/* Base Event Action Button */
.event-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Internal Event Pages */
.event-btn-teal {
    color: #0891b2;
    border-color: #0891b2;
}

.event-btn-teal:hover {
    background: #0891b2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

/* Strava-backed Activities */
.event-btn-strava {
    color: #fc4c02;
    border-color: #fc4c02;
}

.event-btn-strava:hover {
    background: #fc4c02;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 76, 2, 0.3);
}

.event-btn-certificate {
    color: #198754;
    /* Bootstrap success green */
    border-color: #198754;
}

.event-btn-certificate:hover {
    background: #198754;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}



/* Activities Button - Blue Theme */
.btn-sync-activities {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.3);
}

.btn-sync-activities:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 74, 110, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .strava-card-header-enhanced {
        padding: 40px 24px 60px;
    }

    .athlete-photo-enhanced {
        width: 120px;
        height: 120px;
    }

    .athlete-name-enhanced {
        font-size: 1.5rem;
    }

    .strava-stats-grid {
        padding: 0 20px 20px;
        margin-top: -30px;
    }

    .stat-card {
        padding: 16px;
    }

    .strava-details-enhanced {
        padding: 20px;
    }

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

    .strava-card-footer-enhanced {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .card-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-view-strava,
    .btn-sync-activities {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .premium-badge-overlay,
    .strava-logo-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .strava-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .stat-card:last-child {
        border-bottom: none;
    }
}

.registered-event-card {
    margin-bottom: 2rem;
}

.registered-event-card:last-child {
    margin-bottom: 3rem;
    /* extra space before instructions */
}

.btn-strava {
    background-color: #FC4C02;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-strava:hover {
    background-color: #E34402;
}


/* ========================================
   ENHANCED Login page
======================================== */

.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.login-header .subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.form-control {
    height: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.remember-me-section {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.remember-me-section label {
    margin: 0;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.9rem;
}

.btn-primary {
    height: 48px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    background: #3b82f6;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

.social-login-section {
    margin-bottom: 1.5rem;
}

.btn-google,
.btn-strava {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.btn-google {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-strava {
    background: #FC4C02;
    border: 2px solid #FC4C02;
    color: #ffffff;
}

.btn-strava:hover {
    background: #E34402;
    border-color: #E34402;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 76, 2, 0.3);
}

.btn-strava i {
    font-size: 1.2rem;
}

.social-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    text-align: center;
}

.signup-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.signup-section p {
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.btn-orange {
    background: #f97316;
    color: white;
    height: 48px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 48px;
    padding: 0 2rem;
}

.btn-orange:hover {
    background: #ea580c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #f59e0b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #d97706;
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.text-danger {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

@media (max-width: 576px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .login-header h2 {
        font-size: 1.75rem;
    }
}



/* ========================================
   BRM EVENTS PAGE STYLES
   ======================================== */

/* Page Title */
.brm-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0891b2 0%, #0369a1 50%, #0c4a6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.brm-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #FF6F61, #FFD700, #00CED1);
    border-radius: 2px;
}

/* City Section */
.city-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.city-header {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(3, 105, 161, 0.1) 100%);
    border-left: 5px solid #0891b2;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Table Container */
.brm-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Scrollbar Styling */
.brm-table-container::-webkit-scrollbar {
    height: 8px;
}

.brm-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.brm-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0891b2, #0369a1);
    border-radius: 4px;
}

.brm-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0369a1, #0c4a6e);
}

/* BRM Events Table */
.brm-events-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
}

/* Table Header */
.brm-events-table thead tr {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
}

.brm-events-table thead th {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    min-width: 200px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brm-events-table thead th:last-child {
    border-right: none;
}

.brm-events-table thead th:first-child {
    border-top-left-radius: 12px;
}

.brm-events-table thead th:last-child {
    border-top-right-radius: 12px;
}

/* Month Header Icon */
.brm-events-table thead th::before {
    content: '📅';
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Table Body */
.brm-events-table tbody td {
    padding: 1.5rem 1rem;
    vertical-align: top;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    transition: background 0.3s ease;
}

.brm-events-table tbody td:last-child {
    border-right: none;
}

.brm-events-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.brm-events-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.brm-events-table tbody td:hover {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.03) 0%, rgba(3, 105, 161, 0.03) 100%);
}

/* Event List */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item::before {
    content: '🚴';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1rem;
}

/* Event Links */
.event-link {
    display: inline-block;
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.6;
}

.event-link:hover {
    color: #0c4a6e;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(3, 105, 161, 0.15) 100%);
    transform: translateX(5px);
    padding-left: 1rem;
}

.event-link::after {
    content: '→';
    opacity: 0;
    position: absolute;
    right: -20px;
    transition: all 0.3s ease;
}

.event-link:hover::after {
    opacity: 1;
    right: -25px;
}

/* Empty State */
.empty-month {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 2rem;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brm-page-title {
        font-size: 2rem;
    }

    .city-header {
        font-size: 1.5rem;
        padding: 0.6rem 1.25rem;
    }

    .brm-events-table thead th {
        min-width: 180px;
        font-size: 1rem;
        padding: 1rem 0.75rem;
    }

    .brm-events-table tbody td {
        padding: 1.25rem 0.75rem;
    }

    .event-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .brm-page-title {
        font-size: 1.75rem;
    }

    .city-header {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }

    .brm-table-container {
        padding: 1rem;
    }

    .brm-events-table thead th {
        min-width: 150px;
        font-size: 0.9rem;
        padding: 0.875rem 0.625rem;
    }

    .brm-events-table tbody td {
        padding: 1rem 0.625rem;
    }
}

/* Print Styles */
@media print {
    .brm-table-container {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .event-link {
        color: #0369a1;
        text-decoration: underline;
    }

    .event-link::after {
        display: none;
    }
}