/* Custom styles for Athlete Ranking System */

/* Font Face for Twemoji Country Flags */
@font-face {
    font-family: 'TwemojiCountryFlags';
    src: url('../fonts/TwemojiCountryFlags.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Face for Noto Color Emoji */
@font-face {
    font-family: 'Noto Color Emoji';
    src: url('../fonts/noto-emoji.regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
  }
/* Global Emoji Support - Applied to all elements except country flags */
/* Public Ranking Page Styles */
:root {
    --primary: #c41e3a;
    --secondary: #8b0000;
    --accent: #ffffff;
    --success: #4ecdc4;
    --warning: #ffe66d;
    --danger: #c41e3a;
    --dark: #333a49;
    --light: #f8f8f8;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --gray-light: #e6e6e6;
    --gray-medium: #cccccc;
    --text-dark: #333333;
    --text-h-blue: #002d89;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, 'TwemojiCountryFlags', 'BlinkMacSystemFont', 'Noto Color Emoji', 'Segoe UI', Roboto, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    line-height: 1.4;
    color: var(--text-dark);
    background: #d5d5d5;
    background-position: center top;
    background-repeat: no-repeat;
    background-image: url(../../assets/images/6-bg.jpg);
    background-size: 100% auto;
    min-height: 100vh;
}

    
body * {
  
  scroll-margin-top: 10px;
}
a {
    color: #043168;
    text-decoration: none;
}

/* Edit Button Styles */
.edit-btn {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border: none !important;
    background: rgba(255, 193, 7, 0.1) !important;
}

.edit-btn:hover {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 193, 7, 0.2) !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.edit-btn-sm {
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* Edit button animation on hover over parent element */
.athlete-name-container:hover .edit-btn {
    opacity: 1;
}
.last_name {
    text-transform: uppercase;
}

/* Country Flag Display */
.country-flag {
    font-family: 'TwemojiCountryFlags', 'DM Sans', sans-serif;
    
    font-weight: normal;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}
.color-h-blue {
    color: var(--text-h-blue) !important;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--bs-gray-100);
}
.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f1f3f4;
    font-weight: 600;
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 15px;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

/* Sticky table header */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
   
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Athletes table specific styles */
#athletesTableContainer {
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

#athletesTableContainer::-webkit-scrollbar {
    width: 8px;
}

#athletesTableContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#athletesTableContainer::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#athletesTableContainer::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading states */
.loading-row {
    background-color: #f8f9fa;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Load more button */
#loadMoreContainer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#loadMoreBtn {
    min-width: 150px;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* List Groups */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Ranking Specific Styles */
.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #333;
}

.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #d4a574);
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem !important;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    #athletesTableContainer {
        max-height: 70vh;
    }
}

/* Score Type Indicators */
.score-points {
    color: var(--primary-color);
    font-weight: bold;
}

.score-time {
    color: var(--success-color);
    font-weight: bold;
    font-family: monospace;
}

.score-distance {
    color: var(--info-color);
    font-weight: bold;
}

/* Status Indicators */
.status-completed {
    background-color: var(--success-color) !important;
}

.status-active {
    background-color: var(--warning-color) !important;
    color: #000 !important;
}

.status-upcoming {
    background-color: var(--secondary-color) !important;
}

.status-cancelled {
    background-color: var(--danger-color) !important;
}

/* Deleted Athlete Styles */
.athlete-deleted {
    color: #6c757d;
    font-style: italic;
    opacity: 0.7;
}

.athlete-deleted::before {
    content: '👤 ';
    opacity: 0.5;
    margin-right: 4px;
}

tr.deleted-athlete {
    background-color: #f8f9fa;
}

tr.deleted-athlete td {
    color: #6c757d;
}

tr.deleted-athlete:hover {
    background-color: #e9ecef !important;
}

/* Deleted athlete badge */
.badge-deleted-athlete {
    background-color: #6c757d;
    color: white;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
}

/* Historical data indicator */
.historical-data-note {
    background-color: #e7f3ff;
    border-left: 4px solid #0dcaf0;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #055160;
}
/* Available Rankings Menu Styles */
.bg-pink {
        background: none !important;
    color: var(--bs-red) !important;
}

.bg-blue {
        background: none !important;
    color: var(--bs-primary) !important;
}
.female-categories span.badge.bg-primary {
    background-color: var(--bs-red) !important;
}
.female-categories .text-primary {
    color: var(--bs-red) !important;
}
/* Footer */
footer {
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* Loading Spinner */
.loading, .spinner-border-sm {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Section Headers */
.section_header div.default_font h1, 
.section_header div.default_font h2, 
.section_header div.default_font h3, 
.section_header div.default_font h4, 
.section_header div.default_font h5, 
.section_header div.default_font h6 {
    color: #000;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "DM Sans", sans-serif;
}

/* Navigation */
.navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    font-family: 'Roboto', sans-serif;
}

.nav-link {
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'DM Sans', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: white;
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    color: var(--text-dark);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: none;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-white);
    opacity: 0.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(233, 236, 239, 0.6);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Inline Stat Cards */
.stat-card-inline {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(233, 236, 239, 0.6);
    padding: 0.8rem 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    min-width: 120px;
}

.stat-card-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-number-inline {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--primary);
}

.stat-label-inline {
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Cards */

.glass-card, .table-glass, .table-glass tr {
     transition: all 0.3s ease;
    background: rgb(255 255 255 / 40%);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.table-glass td {
background-color: transparent;
}
.glass-card:hover, .table-glass tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ranking-card,
.content-card {
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 0px solid var(--gray-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.content-card .card-header {
    background: var(--dark);
    color: white;
    border: none;            
}

.ranking-card:hover,
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ranking-card .card-header {
    background: var(--dark);
    color: white;
    border: none;
    padding: 1.2rem;
}

.ranking-card .card-title {
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Table Styling */
.ranking-table {
    margin: 0;
    background: white;
}

.ranking-table thead th {
    
    font-weight: 600;
    font-size: 0.7rem;
    
}

.ranking-table thead tr {
    transition: all 0.3s ease; 
    background: white;
    position: sticky;
    top: 0;
    z-index: 1500;
}

.ranking-table tbody tr:hover {
    background: rgba(196, 30, 58, 0.05);
    
    box-shadow: #000 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ranking-table td {
    padding: 1em .4em;    
    vertical-align: middle;
    font-family: 'DM Sans', sans-serif;
}
.ranking-categories-list{display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;}
/* Badges and Buttons */
.badge-custom {
    padding: 0.2rem 0.4rem;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
}

.btn-custom {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
}

.btn-primary-custom:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Profile specific styles */
.profile-header {
    color: var(--text-dark);
    padding: 3rem 0;
    padding-top: 0;
    position: relative;
    overflow: hidden;
   
    color: white;
    
}
.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    background-position: center center;
    background-size: cover;
    mix-blend-mode: multiply;
    background-color: var(--bs-body-color);
    z-index: -1;
        
}
.profile-header .container {
     padding-top: 6rem;
    padding-bottom: 0rem;
}
.font-weight-bold{font-weight: 700 !important;}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-stat-card {
    background: white;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.chart-container {
    position: relative;
    height: 350px;
    padding: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Additional PZN-style elements */
.section-divider {
    height: 3px;
    background: var(--primary);
    width: 60px;
    margin: 0 auto 2rem;
}

.pzn-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pzn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.pzn-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.news-item:hover {
    border-left-color: var(--secondary);
    background-color: rgba(196, 30, 58, 0.02);
}

.official-header {
    background: var(--primary);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.breadcrumb-pzn {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary);
}

.breadcrumb-pzn a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-pzn a:hover {
    text-decoration: underline;
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Event cards */
.event-card {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}
.event-item {
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #f8f9fa;
}
.content-card .nav-link { color: var(--bs-primary-rgb)}


.event-card:hover {
    border-left-color: var(--secondary);
    background-color: rgba(196, 30, 58, 0.05);
}

/* Dynamic navbar on scroll */
.navbar-scrolled {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}
i.bi.bi-check-circle-fill.score-verified {
    color: green;
}

i.bi.bi-exclamation-circle-fill.score-unverified {
    color: dodgerblue;
}




.score-cell { position: relative; white-space: nowrap; }
.score-value { font-weight: bold; }
.score-breakdown { text-align: center; line-height: 1.2; }
.raw-score { font-size: 0.75rem; opacity: 0.8; }
.score-breakdown .score-value {  font-size: 0.9rem; }
.score-breakdown:hover { background-color: rgba(13, 110, 253, 0.1); border-radius: 4px; }
.total-score-breakdown { text-align: left !important; }
.total-score-breakdown .raw-score { font-size: 0.8rem; }
.total-score-breakdown .score-value { color: #198754 !important; }
.position-indicator { font-size: 0.65rem; color: #6c757d; margin-left: 2px; }
.table-responsive { max-height: 80vh; overflow-x: auto; position: relative; }
.sticky-col { position: sticky; background: #fff; z-index: 3; }
.sticky-col-1 {
    left: 1px;
    width: 50px;
}
.sticky-col-2 {  left: 38px; width: 120px; z-index: 1500 !important;}
.sticky-col-3xxx { left: 438px;  width: 250px; }
.sticky-col-4xxx { left: 400px; min-width: 100px; }
.sticky-col-last-1 { right: 0; min-width: 100px; }
.athlete-club { font-size: 0.8rem; color: #000000; }
/*.event-header {     text-align: right; writing-mode: sideways-lr; text-orientation: mixed; transform: rotate(0deg); white-space: nowrap; min-width: 60px; max-width: 60px; height: 140px; vertical-align: bottom; padding: 8px 4px; }
.event-header a {    text-align: right;  writing-mode: sideways-lr; text-orientation: mixed; transform: rotate(0deg); text-decoration: none; display: block; height: 100%; font-size: 0.85rem; line-height: 1.2; }
.table thead th.event-header { border-bottom-width: 2px; }*/
.score-used-in-calculation {
    background-color: #d1ecf14a !important;
    border: 1px solid #bee5eb80 !important;
    font-weight: bold;
}
.score-not-used { opacity: 0.6; }
.best-result-indicator { color: #0c5460; font-size: 0.7rem; margin-left: 2px; }

th.event-header .e_date {
    
    font-weight: bold;
    color: var(--primary-color);
}

.event-tooltip .e_date {
    
    font-weight: bold;
    color: var(--primary-color);
}
th.event-header {
    height: 120px;
    white-space: nowrap;   
    text-transform: none;
}
.table thead th.event-header a {    
    display: block;
    text-align: left;
    width: 118px;
    overflow: hidden;
}
th.event-header > div {
   
    width: 60px;
    z-index: 50 !important;
}

.table thead th.event-header a {
    max-width: 309px;
    display: block;
    text-align: left;
}

.sticky-col.sticky-col-3 {
    z-index: 1000 !important;
}
.sticky-col.sticky-col-1 {
    z-index: 1000 !important;
}
th.align-middle.text-end.sticky-col.sticky-col-last-2 {
    position: sticky;
    right: 0;
    z-index: 10000;
}
th.sticky-col.sticky-col-3, th.sticky-col.sticky-col-1 {
    z-index: 1500 !important;
}
td.sticky-col.sticky-col-last-2 {
    position: sticky;
    right: 0;
    padding-right: .5em;
}
    .container.rankingLayoutWithPreview .ranking-categories-list {
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {
   .container.rankingLayoutWithPreview  #gender-category-menu {
    flex-direction: column;
}
.container.rankingLayoutWithPreview  .rank-header {
       position: sticky;
         top: 0px;
         z-index: 50;
    }

    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .hero-section,
    .profile-header {
        background: var(--primary) !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .glass-card,
    .ranking-card,
    .content-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .navbar, .btn, .card-header .btn, footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
    }
}



        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
            
        }
        
        .stat-card {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(233, 236, 239, 0.6);
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: var(--primary);
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 600;
            display: block;
            margin-bottom: 0.3rem;
            font-family: 'DM Sans', sans-serif;
            color: var(--primary);
        }
        
        .stat-label {
            font-size: 0.85rem;
            font-weight: 500;
            font-family: 'DM Sans', sans-serif;
            color: var(--text-dark);
            opacity: 0.8;
        }
        
        /* Calendar Slider */
        .calendar-slider {
            background: white;
            border: 1px solid #e9ecef;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
            overflow: hidden;
        }
        
        .months-slider {
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            padding: 1rem 0;
        }
        
        .months-slider ul {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            overflow-x: auto;
            gap: 1rem;
            padding: 0 1rem;
        }
        
        .month-item {
            min-width: 120px;
            text-align: center;
            cursor: pointer;
            padding: 0.8rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            background: white;
            border: 1px solid #e9ecef;
        }
        
        .month-item:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }
        
        .month-item.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .month-year {
            font-size: 0.8rem;
            opacity: 0.7;
            margin-bottom: 0.2rem;
        }
        
        .month-name {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .days-slider {
            padding: 1rem;
        }
        
        .days-slider ul {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .day-item {
            min-width: 60px;
            text-align: center;
            cursor: pointer;
            padding: 0.6rem 0.4rem;
            border-radius: 6px;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
            background: #f8f9fa;
        }
        
        .day-item:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-1px);
        }
        
        .day-item.weekend {
            background: #fff3cd;
            border-color: #ffeaa7;
        }
        
        .day-item.has-events {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
       .day-item.today {
    border: 2px solid var(--bs-blue);
    color: #fff;
    background: var(--bs-blue);
}
        
        .day-name {
            font-size: 0.7rem;
            opacity: 0.8;
            margin-bottom: 0.2rem;
        }
        
        .day-number {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        /* Filter Section */
        .filter-section {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #e9ecef;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        
        
        .btn-custom {
            padding: 0.6rem 1.5rem;
            font-weight: 600;
            border: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            font-family: 'DM Sans', sans-serif;
        }
        
        .btn-primary-custom {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary-custom:hover {
            background: var(--secondary);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
        }
        
        .btn-outline-custom {
            border: 2px solid var(--primary);
            color: var(--primary);
            background: transparent;
        }
        
        .btn-outline-custom:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }
        
        /* Table styling */
        .table-responsive .table th {
            border-top: none;
            font-weight: 600;
            
            top: 0;
            z-index: 10;
            height: 50px;
        }
        .table thead th.event-header{
             z-index: 5;
            
        }
        .table-hover tbody tr:hover {
            background-color: rgba(196, 30, 58, 0.05);
        }
        
        .table td {
            vertical-align: middle;
            border-color: #dee2e6;
        }
        
        /* Event highlight animation */
        .event-row.highlight {
            background-color: rgba(196, 30, 58, 0.2) !important;
            animation: highlightFade 3s ease-out;
            border-left: 4px solid var(--primary);
        }

        .position-1x { background-color: #ffd90094; color: #333; }
        .position-2x { background-color: #c0c0c086; color: #333; }
        .position-3x { background-color: #cd803285; color: #333; }
        @keyframes highlightFade {
            0% {
                background-color: rgba(196, 30, 58, 0.4);
                transform: scale(1.02);
            }
            50% {
                background-color: rgba(196, 30, 58, 0.3);
            }
            100% {
                background-color: rgba(196, 30, 58, 0.1);
                transform: scale(1);
            }
        }
        
        /* Responsive */
        @media (max-width: 768px) {
           
            
           
            
            .months-slider ul {
                gap: 0.5rem;
            }
            
            .month-item {
                min-width: 100px;
                padding: 0.6rem;
            }
        }
        
        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

/* Modal z-index fixes */
.modal {
    z-index: 99999!important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

/* Ensure navbar stays below modals */
.navbar.fixed-top {
    z-index: 1030 !important;
}

/* Official header should also stay below modals */
.official-header {
    z-index: 1020 !important;
}

/* Ranking Grid Layout Styles */
.gv-grid.gv-list-view-content {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    flex-direction: row;
    display: flex;
    width: 100%;
    padding: 1rem;
    transition: all 0.3s ease;
}

.gv-grid.gv-list-view-content:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.gv-grid-col-1-3.gv-list-view-content-image {
    max-width: 100% !important;
    flex: 3;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 1rem;
}

.gv-grid-col-2-3.gv-list-view-content-description {
    max-width: 100% !important;
    flex: 10;
    box-sizing: border-box;
    position: relative;
}

.rankHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.rankHeader > div {
    text-align: center;
}

.rankHeaderLeftImg,
.rankHeaderRightImg {
    flex: 1;
}

.rankHeader img {
    max-width: 60px;
    height: auto;
    max-height: 50px;
}

.rankInfoLeft {
    margin-top: auto;
}

.rank_info_text {
    font-size: 0.7em;
    color: #666;
    line-height: 1.4;
}

.RankIconHolder {
    display: block;
    width: fit-content;
    position: absolute;
    right: 0;
    top: 0;
}

.RankIcon.RankSex-K {
    border-right: 2px solid;
    color: #ff99d1;
}

.RankIcon.RankSex-M {
    border-right: 2px solid;
    color: #6598f4;
}

.RankIcon img {
    padding-right: 4px;
}

img.RankIconRender {
    width: 1.8em;
}

/* Table Styles */
.gv-table-view.ranking-render {
    background: white;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em !important;
    border: 0 !important;
    max-width: 410px;
    overflow: hidden;
}

.gv-table-view.ranking-render th {
    width: initial;
    vertical-align: bottom !important;
    border: none !important;
    font-weight: bold;
    text-align: center;
    background-color: white;
    padding: 8px 4px;
    box-shadow: 2px 2px 5px #042c8424;
}

.gv-table-view.ranking-render td {
    border: 0 !important;
    padding: 6px 4px;
    vertical-align: middle;
}

.gv-table-view.ranking-render thead {
    border: 0 !important;
    font-size: 0.82em;
    box-shadow: none !important;
    background-color: white;
}
div#rankings-section {
    min-height: 70vh;
}
th.ponts_sum_h, 
td.points_sum_cell, 
td.points_cell, 
th.rank_cell, 
td.rank_cell {
    text-align: center;
}

.club_cell {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: clamp(0.3em, 95%, 0.8em);
    box-shadow: 2px 2px 5px #042c8424;
}

.name_cell {
    box-shadow: 2px 2px 5px #042c8424;
}

.rankTop5 table tr:nth-child(1) {
    font-size: 1.1em;
}

.rankTop5 table tr:nth-child(2) {
    font-size: 0.95em;
}

.rankTop5 table tr:nth-child(3) {
    font-size: 0.95em;
}

.rankTop5 table tr:nth-child(4) {
    font-size: 0.90em;
}

.rankTop5 table tr:nth-child(5) {
    font-size: 0.9em;
}

.rankTop5 table tr:nth-child(6) {
    font-size: 0.85em;
}
figure img {
    width: 100%;
}


.container-marquee { 
position: relative; 
  border:1px solid #777;  
background: linear-gradient(110deg, #ffffffff 60%, #f2f2f2ff 60%);
 
} 

.container-marquee, .container-marquee .headertext { 
padding: 7px; 
background-color: #fff; 
color: #626060; 
font-weight: bold; 
} 

.container-marquee .headertext { 
position: absolute; 
top: 0; 
left: 0; 
z-index: 10; 
padding: 10px 10px;
border-right:1px solid #777;  
background: var(--bs-primary);
 color:#fff ;
    text-shadow: 1px 1px #111;
} 

.container-marquee marquee { 
line-height: 1.5; 
} 

.container-marquee marquee p { 
margin: 0; 

} 
/* Responsive Design */

.show-small {display: none;}
.table-striped .table-even td  {
    --bs-table-color-type:inherit;
    --bs-table-bg-type: inherit;
}
td .athlete-club {
    max-width: 180px;
    text-overflow: clip;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
th .e_name
 {
    width: 69px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hide-rank {
    display: none;
}
@media (max-width: 992px) {
    .ranking-categories-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
}
@media (max-width:768px) {
.hide-small {display: none}

.show-small {display: initial;}



    .gv-grid.gv-list-view-content {
        flex-direction: column;
    }
    
    .gv-grid-col-1-3.gv-list-view-content-image {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .rankHeader {
        justify-content: center;
        gap: 2rem;
    }
    
    .gv-table-view.ranking-render {
        font-size: 0.7em !important;
    }
    .ranking-categories-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.header-image-left img, .header-image-right img {
    max-height: 80px !important;
}
.profile-header .container {
    padding-top: 4rem;
    padding-bottom: 0rem;
}
}

@media print {
    .gv-grid.gv-list-view-content:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Event Header Tooltips */
.event-tooltip {
    --bs-tooltip-max-width: 300px;
   opacity: 1 !important;
}

.event-tooltip .tooltip-inner {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-line;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.event-tooltip .tooltip-arrow::before {
    border-top-color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
}

/* Enhanced cursor for event headers with tooltips */
.event-header[data-bs-toggle="tooltip"] {
    cursor: help !important;
}

.event-header[data-bs-toggle="tooltip"]:hover {
    opacity: 1;
}

/* Global tooltip emoji support */
.tooltip-inner {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}