/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Modern App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header .clan-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

.sidebar-header .page-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 32px;
}

.menu-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 0 0 12px 20px;
    padding: 0;
}

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

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border-left-color: #3b82f6;
}

.menu-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-left-color: #3b82f6;
}

.menu-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
    border-radius: 3px 0 0 3px;
}

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.menu-link:hover .menu-icon,
.menu-link.active .menu-icon {
    opacity: 1;
}

.menu-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-footer .last-update {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    min-width: 0;
}

.top-bar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-content-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Modern Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Card Header */
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.card-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Card Content */
.card-content {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modern Tables */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modern-table th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.modern-table tbody tr:hover {
    background: #f8fafc;
}

.modern-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.modern-table tbody tr:nth-child(even):hover {
    background: #f1f5f9;
}

/* Compact Tables */
.modern-table.compact th {
    padding: 8px 12px;
    font-size: 12px;
}

.modern-table.compact td {
    padding: 8px 12px;
    font-size: 13px;
}

/* Events Container */
.events-container {
    padding: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.event-day {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.event-day-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-list {
    min-height: 60px;
}

/* Chart Container */
.chart-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Top Performers Grid */
.top-performers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.top-performer-section {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.performer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 12px 0;
}

.performer-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.performer-table {
    overflow-x: auto;
}

/* Player Info Sections */
.info-sections {
    display: grid;
    gap: 24px;
}

.info-section {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.info-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-item label {
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Update Status */
.update-status {
    display: flex;
    align-items: center;
}

.update-warning {
    font-size: 13px;
    font-weight: 500;
}

.update-warning.urgent {
    color: #ef4444;
}

.update-warning.ok {
    color: #22c55e;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chart-section {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.chart-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 16px 0;
    text-align: center;
}

/* Empty Chart State */
.empty-chart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    text-align: center;
}

.empty-chart-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-chart-text {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

/* Event Items */
.event-item {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
}

.event-item.no-events {
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
}

/* Personal Tab Layout */
.personal-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.personal-layout .full-width {
    width: 100%;
}

.personal-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Info Sections Grid for Full Width Layout */
.info-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-sections-grid .info-section {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.info-sections-grid .info-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.info-sections-grid .info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.info-sections-grid .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    line-height: 1em;
}

.info-sections-grid .info-item label {
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
}

.info-sections-grid .info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

/* Full Width Charts Layout */
.charts-full-width {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-section-full {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.chart-section-full .chart-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-section-full .chart-wrapper {
    height: 300px;
    position: relative;
}

/* Legacy container styles for backward compatibility */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    flex-grow: 1;
}

.clan-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Filter Section */
.filter-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item:first-child {
    width: 200px;
}

.minimum-text {
    color: #2563eb;
    font-size: 14px;
    font-weight: bold;
    margin-left: auto;
}

.last-update {
    color: #666;
    font-size: 12px;
    text-align: left;
    line-height: 1.4em;
    min-width: 300px;  /* Ensure enough space for both times */
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Date Inputs and Template Select */
#dateTemplateSelect {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 2.5px;
    font-size: 14px;
    padding: 7.5px 7.5px 3.75px;
    width: 220px;
    height: 16px !important;
    min-height: 33px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgdmlld0JveD0iMCAwIDEwIDEwIiBmaWxsPSJibGFjayI+PHBhdGggZD0iTTAgM2w1IDUgNS01eiIvPjwvc3ZnPg==');
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 10px 10px;
}

#dateTemplateSelect:focus {
    outline: none;
    border-color: #b3b3b3;
}

#dateTemplateSelect:hover {
    border-color: #b3b3b3;
}

/* Placeholder option styling */
#dateTemplateSelect option:disabled {
    color: #9ca3af;
    font-style: italic;
    background-color: #f9fafb;
}

/* Ensure placeholder is not selectable in dropdown */
#dateTemplateSelect option:first-child {
    color: #9ca3af;
    font-style: italic;
    background-color: #f9fafb;
}

/* Better dropdown appearance */
#dateTemplateSelect option:not(:disabled) {
    color: #1e293b;
    background-color: #ffffff;
    padding: 8px 12px;
}

#dateTemplateSelect option:not(:disabled):hover {
    background-color: #f1f5f9;
}

/* Player Select Dropdown - Match Date Template Select styling */
#playerSelect {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 2.5px;
    font-size: 14px;
    padding: 7.5px 7.5px 3.75px;
    width: 220px;
    height: 16px !important;
    min-height: 33px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgdmlld0JveD0iMCAwIDEwIDEwIiBmaWxsPSJibGFjayI+PHBhdGggZD0iTTAgM2w1IDUgNS01eiIvPjwvc3ZnPg==');
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 10px 10px;
}

#playerSelect:focus {
    outline: none;
    border-color: #b3b3b3;
}

#playerSelect:hover {
    border-color: #b3b3b3;
}

.filter-section input[type="date"] {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    padding: 2px 8px 2px 32px; /* Ensure space for the calendar icon */
    width: 100px;
    height: 28px !important;
    cursor: pointer;
    text-align: right;
    direction: ltr;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-position: 8px center; /* Position the icon */
    background-repeat: no-repeat;
    background-size: 16px;
}

/* iOS-specific styles */
.filter-section input[type="date"]::-webkit-date-and-time-value {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}

/* iOS and Safari specific style */
@supports (-webkit-touch-callout: none) {
    .filter-section input[type="date"] {
        padding-right: 4px; /* Smaller right padding on iOS */
        font-size: 13px; /* Slightly smaller font for better fit */
    }
}

/* Hide the default calendar picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    z-index: 1;
}

/* Force date format display for iOS */
input[type="date"]::before {
    content: attr(data-date);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none; /* Allow clicks to focus the input */
}

input[type="date"]:focus::before,
input[type="date"]:not(:placeholder-shown)::before {
    content: none;
}

#dateTemplateSelect:hover,
.filter-section input[type="date"]:hover {
    border-color: #b3b3b3;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-item label {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
}

/* Tables Layout */
.tables-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    align-items: start;
}

.right-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Rankings Filter */
.ranking-filter {
    width: 100%;
}

.ranking-filter select {
    width: 100%;
    padding: 8px 12px;
    background-color: #FFFD82;
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
}

th.number-column {
    text-align: right;
}

td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
}

.number-column {
    text-align: right;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* Category Styling for Data Table */
.category-header {
    background-color: #f0f4f8;
}

.category-name {
    font-weight: bold;
    padding: 8px;
    background-color: #e2e8f0;
    font-size: 1.1em;
    text-align: left;
}

.category-subtotal {
    background-color: #f8fafc;
    font-weight: 600;
    border-top: 1px solid #cbd5e1;
    border-bottom: 2px solid #e2e8f0;
}

.text-right {
    text-align: right;
}

/* Total Row */
.total-row td {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
    padding: 12px 8px;
    border-top: 2px solid #94a3b8;
}

/* Ensure the "Total" text aligns to the right in the spanned columns */
.total-row td:first-child {
    text-align: right;
}

/* Points Styling */
.points-high {
    background-color: #e8f5e9 !important;
}

.points-medium {
    background-color: #fff3e0 !important;
}

.points-low {
    background-color: #ffebee !important;
}

.highlight-row.points-high {
    background-color: #c8e6c9 !important;
}

.highlight-row.points-medium {
    background-color: #ffe0b2 !important;
}

.highlight-row.points-low {
    background-color: #ffcdd2 !important;
}

/* Rankings Table */
.ranking-table .rank-column {
    width: 50px;
    text-align: center;
}

.ranking-table .points-column {
    text-align: center !important;
}

/* Rank Icons */
.rank-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    color: white;
}

.rank-icon.rank-1 {
    background-color: #FFD700;
}

.rank-icon.rank-2 {
    background-color: #C0C0C0;
}

.rank-icon.rank-3 {
    background-color: #CD7F32;
}

/* Top 3 Rankings */
.ranking-table .rank-1 td {
    color: #854d0e;
    font-weight: bold;
}

.ranking-table .rank-2 td {
    color: #475569;
    font-weight: bold;
}

.ranking-table .rank-3 td {
    color: #854d0e;
    font-weight: bold;
}

/* Epic Kills Details */
.epic-kills-details {
    padding: 8px 0;
}

.epic-kills-details td {
    padding: 2px 8px;
    border: none;
    background: transparent !important;
}

.epic-kills-details td:last-child {
    text-align: right;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 800px;
    width: 90%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.modal-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.modal-button.cancel {
    background-color: #e0e0e0;
    color: #333;
}

.modal-button.cancel:hover {
    background-color: #d0d0d0;
}

.modal-button.confirm {
    background-color: #4CAF50;
    color: white;
}

.modal-button.confirm:hover {
    background-color: #45a049;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #333;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Choices.js Custom Styles */
.choices {
    margin-bottom: 0 !important;
}

.choices__inner {
    height: 16px !important;
    width: 170px !important;
    min-height: 16px;
}

.choices__list--single {
    padding: 0 !important;
}

.choices__list.choices__list--dropdown.is-active {
    width: 185px !important;
    z-index: 3 !important;
}

/* Player Info Section */
.player-info-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-column h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #2c3e50;
}

.info-row {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
}

.info-row label {
    font-weight: bold;
    color: #666;
    margin-right: 8px;
}

.info-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-warning {
    font-size: 13px;
    font-weight: bold;
}

.update-warning.urgent {
    color: #ef4444;
}

.update-warning.ok {
    color: #22c55e;
}

.info-row span[title] {
    cursor: help;
    border-bottom: 1px dotted #666;
}

.custom-tooltip {
    display: none;
    position: fixed;
    background: #2c3e50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tooltip-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-row {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.tooltip-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-date {
    color: #94a3b8;
    font-size: 12px;
}

.tooltip-value {
    font-weight: bold;
    color: #fbbf24;
}

.points-chart-btn {
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
    margin-top: 25px;
}

.points-chart-btn:hover {
    background-color: #2563eb;
}

.points-chart-modal {
    max-width: 800px;
    width: 90%;
}

.points-chart-modal table {
    margin-bottom: 20px;
}

.points-chart-modal h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: bold;
}

.kills-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

.kills-table th,
.kills-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

#epic-kills-chart {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
}

.ranking-table tr.top-rank td {
    font-weight: bold;
}

.ranking-table tr.rank-1 td {
    color: #854d0e;
}

.ranking-table tr.rank-2 td {
    color: #475569;
}

.ranking-table tr.rank-3 td {
    color: #854d0e;
}

/* Add hover effect to the kills table rows */
#kills-table-body tr:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* Modal title styling */
.modal-content .modal-title {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.modal-content.monster-kills-modal {
    max-width: 400px;
}

/* 3D Button Styles with color schemes */
.btn3d-pushable {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  text-decoration: none;
  display: inline-block;
    text-transform: uppercase;
}

.btn3d-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Blue edge gradient (default) */
.btn3d-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(215deg 100% 16%) 0%,
    hsl(215deg 100% 32%) 8%,
    hsl(215deg 100% 32%) 92%,
    hsl(215deg 100% 16%) 100%
  );
}

/* Red edge gradient (for outdated) */
.btn3d-edge.outdated {
    background: linear-gradient(
        to left,
        hsl(0deg 100% 16%) 0%,
        hsl(0deg 100% 32%) 8%,
        hsl(0deg 100% 32%) 92%,
        hsl(0deg 100% 16%) 100%
    );
}

/* Blue front (default) */
.btn3d-front {
  display: block;
  position: relative;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  background: hsl(210deg 100% 47%);
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
    white-space: nowrap;
    min-width: max-content;
}

/* Red front (for outdated) */
.btn3d-front.outdated {
    background: hsl(0deg 100% 47%);
}

.btn3d-pushable:hover {
  filter: brightness(110%);
}

.btn3d-pushable:hover .btn3d-front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.btn3d-pushable:active .btn3d-front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.btn3d-pushable:hover .btn3d-shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.btn3d-pushable:active .btn3d-shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.btn3d-pushable:focus:not(:focus-visible) {
  outline: none;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }
    
    .top-bar {
        padding: 16px 20px;
    }
    
    .tab-content-container {
        padding: 20px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .top-performers-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide sidebar by default on mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    /* Add overlay for mobile menu */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Adjust main content for mobile */
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    
    .top-bar {
        padding: 12px 16px;
        margin-top: 60px; /* Space for mobile menu toggle */
    }
    
    .tab-content-container {
        padding: 16px;
    }
    
    /* Compact filter section for mobile */
    .filter-section {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .filter-item {
        width: 100% !important;
    }
    
    .filter-item:first-child {
        width: 100% !important;
    }
    
    /* Mobile content grid adjustments */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-footer {
        padding: 12px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 16px;
    }
    
    .chart-section {
        padding: 16px;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .top-performers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Personal Tab Mobile Layout */
    .personal-bottom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-sections-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Adjust sidebar header for mobile */
    .sidebar-header {
        padding: 20px 16px;
    }
    
    .sidebar-header .clan-logo {
        width: 50px;
        height: 50px;
    }
    
    .sidebar-header .page-title {
        font-size: 16px;
    }
    
    /* Compact menu items */
    .menu-link {
        padding: 10px 16px;
    }
    
    .menu-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .menu-text {
        font-size: 13px;
    }
    
    /* Legacy container adjustments */
  .container {
    padding: 10px !important;
    margin: 5px !important;
  }
  
  /* Fix the tables layout */
  .tables-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  /* Adjust pie chart container */
  #epic-kills-chart .bg-white {
    padding: 8px !important;
    margin-bottom: 10px !important;
  }
  
  /* Make chart more compact */
  #epic-kills-chart .chart-wrapper {
    height: 250px !important;
    margin: 0 !important;
  }
  
  /* Reduce spacing between chart elements */
  #epic-kills-chart h2 {
    font-size: 16px !important;
    margin: 5px 0 !important;
  }
  
  #epic-kills-chart #total-kills {
    margin: 5px 0 !important;
    font-size: 14px !important;
  }
  
  /* Adjust the kills table below chart */
  #epic-kills-chart .kills-table {
    margin-top: 5px !important;
    font-size: 12px !important;
  }
  
  #epic-kills-chart .kills-table th,
  #epic-kills-chart .kills-table td {
    padding: 4px !important;
  }
  
  /* Make all tables more compact */
  table th, table td {
    padding: 5px !important;
    font-size: 12px !important;
  }
  
  /* Player info section adjustments */
  .player-info-section {
    padding: 10px !important;
  }
  
  .info-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  /* Choices.js adjustments for mobile */
  .choices__inner {
    width: 100% !important;
  }
}

/* Tab Navigation */
.tabs-navigation {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome/Safari */
.tabs-navigation::-webkit-scrollbar {
    display: none;
}

/* Fix jumping issue by adding scroll margin */
.tab-content {
    scroll-margin-top: 20px;
}

.tab-button {
    position: relative;
    padding: 16px 24px;
    background: none;
    border: none;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    min-width: 100px;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
    border-radius: 3px 3px 0 0;
}

.tab-button:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.tab-button.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.tab-button.active::before {
    transform: scaleX(1);
}

.tab-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: currentColor;
}

.tab-button:hover .tab-icon {
    transform: translateY(-2px);
}

.tab-button.active .tab-icon {
    transform: translateY(-2px);
}

.tab-button span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Tab Content */
.tab-content-container {
    position: relative;
    margin-top: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
    .container {
        padding: 5px !important;
        margin: 5px !important;
    }

    .tabs-navigation {
        flex-wrap: nowrap;
        gap: 0;
        padding: 0;
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .tab-button {
        padding: 3px 2px;
        min-width: 35px;
        max-width: 35px;
        font-size: 8px;
        gap: 1px;
        flex: 1;
        flex-basis: 0;
    }

    .tab-icon {
        width: 10px;
        height: 10px;
    }

    .tab-button span {
        font-size: 7px;
        white-space: nowrap;
        letter-spacing: -0.3px;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
        padding: 0;
        line-height: 1;
    }

    /* Remove hover effects and animations on mobile */
    .tab-button:hover .tab-icon,
    .tab-button.active .tab-icon {
        transform: none;
    }

    .tab-button::before {
        height: 1px;
    }

    .tab-button:hover,
    .tab-button.active {
        background: none;
    }

    .tab-button.active {
        color: #2563eb;
    }
}

/* Leaderboard Tab Layout */
.leaderboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 25px;
}

.leaderboard-main {
    padding-right: 15px;
}

.leaderboard-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.main-ranking {
    height: 100%;
}

.top10-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top10-table h3 {
    font-size: 16px;
    color: #1e293b;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.top10-table table {
    width: 100%;
}

/* Personal Tab Layout */
.personal-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 25px;
}

.personal-main {
    padding-right: 15px;
}

.personal-charts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Make sure the table container is sized properly */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

/* Table column adjustments */
.rank-column {
    width: 50px !important;
    max-width: 50px !important;
    text-align: center !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.points-column {
    text-align: center !important;
    width: 80px !important;
}

th.rank-column {
    text-align: center !important;
}

th.points-column {
    text-align: center !important;
}

td.rank-column {
    text-align: center !important;
}

td.points-column {
    text-align: center !important;
}

.count-column {
    text-align: center !important;
    width: 60px !important;
}

th.count-column {
    text-align: center !important;
}

td.count-column {
    text-align: center !important;
}

/* Top 10 tables styling */
.top10-table {
    margin-bottom: 20px;
}

.top10-table table {
    width: 100%;
    border-collapse: collapse;
}

.top10-table th, .top10-table td {
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
}

.top10-table th {
    background-color: #1e293b;
    color: white;
    font-size: 12px;
}

.top10-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.top10-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Fix modal issues */
.modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#modalTable {
    width: 100%;
}

#modalTable th, #modalTable td {
    padding: 8px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

#modalTable th {
    background-color: #1e293b;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .leaderboard-grid, .personal-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-main, .personal-main {
        padding-right: 0;
    }
    
    .player-chart-container {
        height: 350px;
    }
    
    .chart-wrapper {
        height: 300px;
    }

    .player-chart-container.large .chart-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .tabs-navigation {
        padding: 0 5px;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .rank-column {
        width: 30px !important;
    }
    
    .points-column {
        width: 60px !important;
    }
    
    .top10-table th, .top10-table td {
        padding: 4px 6px;
        font-size: 12px;
    }
}

.player-chart-container.large {
    min-height: 400px;
}

.player-chart-container.large .chart-wrapper {
    height: 350px;
}

@media (max-width: 768px) {
    .chart-wrapper {
        height: 350px; /* Maximum height on small screens */
    }
    
    .player-chart-container.large .chart-wrapper {
        height: 450px;
    }
}

/* Styles to enhance the 3D pie chart appearance */

/* Add a subtle shadow to the chart container for more depth */
#epic-kills-chart .chart-wrapper {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    padding-bottom: 15px;
}

/* Make the pie chart container slightly larger for better visibility */
#epic-kills-chart .chart-wrapper {
    margin: 0 auto 20px;
    position: relative;
    margin-top: 15px;
}

/* Style the total kills counter to stand out more */
#total-kills {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* Make the color dots in the table more prominent */
#epic-kills-chart .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Add a subtle gradient background to the chart container */
#epic-kills-chart .bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Style the chart title to better match a 3D look */
#epic-kills-chart h2 {
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Enhance the kills table appearance */
#epic-kills-chart .kills-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#epic-kills-chart .kills-table th {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    padding: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

#epic-kills-chart .kills-table tr:hover {
    background-color: #f0f4f8;
    transition: background-color 0.2s ease;
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    #epic-kills-chart .chart-wrapper {
        height: 280px !important;
    }
    
    #total-kills {
        font-size: 16px;
    }
}

/* Add these styles to your styles.css file */

/* Crypts Tab Styles */
.crypts-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

#cryptsRankingTable th.center-text {
    text-align: center;
}

#cryptsRankingTable th.small-column {
    width: 60px;
    max-width: 60px;
    padding: 8px 4px;
    font-size: 12px;
    text-align: center !important;
}

#cryptsRankingTable td.small-column {
    padding: 8px 4px;
    text-align: center !important;
}

#cryptsRankingTable th.bold-text,
#cryptsRankingTable td.bold-text {
    font-weight: bold;
}

/* Colored headers for crypt types */
#cryptsRankingTable .common-header {
    background-color: rgba(22, 163, 74, 0.2); /* Green */
    color: #15803d;
}

#cryptsRankingTable .rare-header {
    background-color: rgba(59, 130, 246, 0.2); /* Blue */
    color: #1d4ed8;
}

#cryptsRankingTable .epic-header {
    background-color: rgba(147, 51, 234, 0.2); /* Purple */
    color: #7e22ce;
}

#cryptsRankingTable .tartaros-header {
    background-color: rgba(234, 179, 8, 0.2); /* Yellow */
    color: #b45309;
}

#cryptsRankingTable .total-header {
    font-weight: bold;
}

/* Crypts Distribution Chart */
#crypts-distribution-chart {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
}

/* Stats Cards */
.top-stats-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-stats-container h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #3b82f6;
}

/* Colored stat cards */
.stat-card.common-card {
    border-left: 4px solid #16a34a;
}

.stat-card.rare-card {
    border-left: 4px solid #3b82f6;
}

.stat-card.epic-card {
    border-left: 4px solid #9333ea;
}

.stat-card.tartaros-card {
    border-left: 4px solid #eab308;
}

.stat-title {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* Color indicators for different crypt types */
.crypt-common {
    color: #16a34a;
}

.crypt-rare {
    color: #3b82f6;
}

.crypt-epic {
    color: #9333ea;
}

.crypt-tartaros {
    color: #eab308;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #cryptsRankingTable th.small-column {
        width: 50px;
        font-size: 11px;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Citadels Tab Styles */
.citadels-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

/* Citadel column styling */
.citadel-column {
    width: 60px;
    max-width: 80px;
    text-align: center !important;
    padding: 8px 4px;
    font-size: 12px;
}

/* Colored headers for different citadel levels */
.lvl10-header {
    background-color: rgba(14, 165, 233, 0.2); /* Sky blue */
    color: #0284c7;
}

.lvl15-header {
    background-color: rgba(34, 197, 94, 0.2); /* Green */
    color: #15803d;
}

.lvl20-header {
    background-color: rgba(168, 85, 247, 0.2); /* Purple */
    color: #7e22ce;
}

.lvl25-header {
    background-color: rgba(245, 158, 11, 0.2); /* Amber */
    color: #b45309;
}

.lvl30-header {
    background-color: rgba(239, 68, 68, 0.2); /* Red */
    color: #b91c1c;
}

.cursed20-header {
    background-color: rgba(0, 0, 0, 0.2); /* Dark gray */
    color: #1e293b;
}

.cursed25-header {
    background-color: rgba(17, 24, 39, 0.2); /* Darker gray */
    color: #111827;
}

/* Citadels Distribution Chart */
#citadels-distribution-chart {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
}

/* Stats Cards for citadels */
.stat-card.lvl10-card {
    border-left: 4px solid #0ea5e9;
}

.stat-card.lvl20-card {
    border-left: 4px solid #a855f7;
}

.stat-card.lvl30-card {
    border-left: 4px solid #ef4444;
}

.stat-card.cursed-card {
    border-left: 4px solid #111827;
}

/* Colors for citadel types in text */
.citadel-lvl10 {
    color: #0ea5e9;
}

.citadel-lvl15 {
    color: #22c55e;
}

.citadel-lvl20 {
    color: #a855f7;
}

.citadel-lvl25 {
    color: #f59e0b;
}

.citadel-lvl30 {
    color: #ef4444;
}

.citadel-cursed20 {
    color: #1e293b;
}

.citadel-cursed25 {
    color: #111827;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .citadel-column {
        width: 50px;
        font-size: 11px;
    }
}

/* Player Select Modal Specific Styles */
.player-select-modal {
    position: relative;
    background-color: #fff;
    margin: 15vh auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

.player-select-modal .modal-title {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #333;
}

.player-select-modal p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
}

.player-select-modal .player-search-container {
    margin: 0 0 15px 0;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.player-select-modal .player-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.player-select-modal .player-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.player-select-modal .player-list-container {
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.player-select-modal .player-list {
    padding: 4px 0;
}

.player-select-modal .player-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-select-modal .player-item:hover {
    background-color: #f3f4f6;
}

.player-select-modal .player-item:active {
    background-color: #e5e7eb;
}

/* Player Charts Common Styles */
.player-chart-container {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
}

.player-chart-container .chart-wrapper {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    padding-bottom: 15px;
    margin: 0 auto 20px;
    position: relative;
    margin-top: 15px;
}

.player-chart-container .chart-title {
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.player-chart-container [id^="player-total-"] {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.player-chart-container .kills-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.player-chart-container .kills-table th {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    padding: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.player-chart-container .kills-table tr:hover {
    background-color: #f0f4f8;
    transition: background-color 0.2s ease;
}

.player-chart-container .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Mobile responsiveness for player charts */
@media (max-width: 768px) {
    .player-chart-container .chart-wrapper {
        height: 280px !important;
    }
    
    .player-chart-container [id^="player-total-"] {
        font-size: 16px;
    }
}

/* Citadel type text colors without backgrounds */
.citadel-lvl10 { color: #0ea5e9; }
.citadel-lvl15 { color: #22c55e; }
.citadel-lvl20 { color: #a855f7; }
.citadel-lvl25 { color: #f59e0b; }
.citadel-lvl30 { color: #ef4444; }
.citadel-cursed20 { color: #1e293b; }
.citadel-cursed25 { color: #111827; }

/* Remove any existing background colors from citadel headers */
.citadel-lvl10, .citadel-lvl15, .citadel-lvl20, .citadel-lvl25, .citadel-lvl30, .citadel-cursed20, .citadel-cursed25 {
    background: none !important;
}

.update-button {
    display: none;
}

/* Epic Kills Tab Grid Layout */
.epic-kills-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 25px;
}

.epic-kills-main {
  padding-right: 15px;
}

.epic-kills-side {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Epic Kills Details (sub-data) styling */
.epic-kills-details td {
  padding: 2px 8px;
  border: none !important;
  background: transparent !important;
  font-size: 12px;
  color: #666;
}

.epic-kills-details td table {
  width: 100%;
  margin-left: 20px;
}

.epic-kills-details td table td {
  padding: 2px 8px;
  border: none !important;
  background: transparent !important;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .epic-kills-grid {
    grid-template-columns: 1fr;
  }
  .epic-kills-main {
    padding-right: 0;
  }
}

/* Heroics Table Header Colors */
.lvl16-20-header {
    background-color: rgba(14, 165, 233, 0.2); /* Sky blue */
    color: #0ea5e9;
}
.lvl21-25-header {
    background-color: rgba(34, 197, 94, 0.2); /* Green */
    color: #22c55e;
}
.lvl26-30-header {
    background-color: rgba(168, 85, 247, 0.2); /* Purple */
    color: #a855f7;
}
.lvl31-35-header {
    background-color: rgba(245, 158, 11, 0.2); /* Amber */
    color: #f59e0b;
}
.lvl36-40-header {
    background-color: rgba(239, 68, 68, 0.2); /* Red */
    color: #ef4444;
}
.lvl41-45-header {
    background-color: rgba(30, 41, 59, 0.2); /* Dark blue-gray */
    color: #1e293b;
}

/* Ragnarök Chart Styles */
#ragnarok-distribution-chart {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
}

#ragnarok-distribution-chart .chart-wrapper {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    padding-bottom: 15px;
    margin: 0 auto 20px;
    position: relative;
    margin-top: 15px;
}

#ragnarok-distribution-chart .bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#ragnarok-distribution-chart h2 {
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

#ragnarok-distribution-chart .kills-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#ragnarok-distribution-chart .kills-table th {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    padding: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

#ragnarok-distribution-chart .kills-table tr:hover {
    background-color: #f0f4f8;
    transition: background-color 0.2s ease;
}

#ragnarok-distribution-chart .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #ragnarok-distribution-chart .chart-wrapper {
        height: 280px !important;
    }
}

/* Common Pie Chart Styles */
.pie-chart-container {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
}

.pie-chart-container .chart-wrapper {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    padding-bottom: 15px;
    margin: 0 auto 20px;
    position: relative;
    margin-top: 15px;
}

.pie-chart-container .bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.pie-chart-container h2 {
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.pie-chart-container .kills-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pie-chart-container .kills-table th {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    padding: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.pie-chart-container .kills-table tr:hover {
    background-color: #f0f4f8;
    transition: background-color 0.2s ease;
}

.pie-chart-container .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .pie-chart-container .chart-wrapper {
        height: 280px !important;
    }
}

/* Update existing pie chart containers to use the common class */
#epic-kills-chart,
#crypts-distribution-chart,
#citadels-distribution-chart,
#ragnarok-distribution-chart,
#heroics-distribution-chart,
.player-chart-container {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
}

#epic-kills-chart .chart-wrapper,
#crypts-distribution-chart .chart-wrapper,
#citadels-distribution-chart .chart-wrapper,
#ragnarok-distribution-chart .chart-wrapper,
#heroics-distribution-chart .chart-wrapper,
.player-chart-container .chart-wrapper {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    padding-bottom: 15px;
    margin: 0 auto 20px;
    position: relative;
    margin-top: 15px;
}

#epic-kills-chart .bg-white,
#crypts-distribution-chart .bg-white,
#citadels-distribution-chart .bg-white,
#ragnarok-distribution-chart .bg-white,
#heroics-distribution-chart .bg-white,
.player-chart-container .bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#epic-kills-chart h2,
#crypts-distribution-chart h2,
#citadels-distribution-chart h2,
#ragnarok-distribution-chart h2,
#heroics-distribution-chart h2,
.player-chart-container .chart-title {
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

#epic-kills-chart .kills-table,
#crypts-distribution-chart .kills-table,
#citadels-distribution-chart .kills-table,
#ragnarok-distribution-chart .kills-table,
#heroics-distribution-chart .kills-table,
.player-chart-container .kills-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#epic-kills-chart .kills-table th,
#crypts-distribution-chart .kills-table th,
#citadels-distribution-chart .kills-table th,
#ragnarok-distribution-chart .kills-table th,
#heroics-distribution-chart .kills-table th,
.player-chart-container .kills-table th {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    padding: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

#epic-kills-chart .kills-table tr:hover,
#crypts-distribution-chart .kills-table tr:hover,
#citadels-distribution-chart .kills-table tr:hover,
#ragnarok-distribution-chart .kills-table tr:hover,
#heroics-distribution-chart .kills-table tr:hover,
.player-chart-container .kills-table tr:hover {
    background-color: #f0f4f8;
    transition: background-color 0.2s ease;
}

#epic-kills-chart .color-dot,
#crypts-distribution-chart .color-dot,
#citadels-distribution-chart .color-dot,
#ragnarok-distribution-chart .color-dot,
#heroics-distribution-chart .color-dot,
.player-chart-container .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #epic-kills-chart .chart-wrapper,
    #crypts-distribution-chart .chart-wrapper,
    #citadels-distribution-chart .chart-wrapper,
    #ragnarok-distribution-chart .chart-wrapper,
    #heroics-distribution-chart .chart-wrapper,
    .player-chart-container .chart-wrapper {
        height: 280px !important;
    }
}

/* Remove duplicate styles */
#epic-kills-chart,
#crypts-distribution-chart,
#citadels-distribution-chart,
#ragnarok-distribution-chart,
#heroics-distribution-chart,
.player-chart-container {
    /* Remove duplicate styles since they're now in the common class */
}

/* Remove all the individual chart styles since they're now in the common class */

/* Summary row styling */
.summary-row {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row td {
    font-weight: bold !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.total-row {
    background-color: rgba(0, 0, 0, 0.05);
    border-top: 2px solid #e5e7eb;
    font-weight: bold;
}

/* Table hover effects */
.kills-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s ease;
}

.kills-table .summary-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.kills-table .total-row:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.kills-table .crypt-common,
.pie-chart-container .crypt-common {
    color: #16a34a !important;
}

.kills-table .crypt-rare,
.pie-chart-container .crypt-rare {
    color: #3b82f6 !important;
}

.kills-table .crypt-epic,
.pie-chart-container .crypt-epic {
    color: #9333ea !important;
}

.kills-table .crypt-tartaros,
.pie-chart-container .crypt-tartaros {
    color: #eab308 !important;
}

/* Summary row styling */
.kills-table .summary-row,
.pie-chart-container .summary-row {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.kills-table .summary-row td,
.pie-chart-container .summary-row td {
    font-weight: bold !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.kills-table .total-row,
.pie-chart-container .total-row {
    background-color: rgba(0, 0, 0, 0.05);
    border-top: 2px solid #e5e7eb;
    font-weight: bold;
}

/* Table hover effects */
.kills-table tr:hover,
.pie-chart-container tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s ease;
}

.kills-table .summary-row:hover,
.pie-chart-container .summary-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.kills-table .total-row:hover,
.pie-chart-container .total-row:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

/* Calendar */
.cal-controls {
  display:flex; align-items:center; justify-content:center;
  gap:12px; margin:8px 0 12px;
}
.cal-title { font-weight:600; }
.cal-nav { padding:4px 10px; border:1px solid #ddd; background:#fff; cursor:pointer; }

.cal-grid {
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:6px;
}
.cal-weekday {
  font-size:12px; text-align:center; font-weight:600; color:#444; margin:6px 0;
}
.cal-cell {
  min-height:100px; border:1px solid #eee; border-radius:6px; padding:6px; background:#fff;
}
.cal-cell .day { font-size:14px; font-weight:600; color:#666; margin-bottom:4px; }
.cal-tags { display:flex; flex-direction:column; gap:4px; }
.cal-tag { display:inline-block; font-size:14px; line-height:1.2; padding:6px 6px; border-radius:4px; color:#fff; word-break:break-word; }
.cal-tag:hover { filter:brightness(1.05); }

/* Colored pills used in Daily Events list (Leaderboard tab) */
.ev-pill {
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  word-break: break-word;
}
.ev-list {
  margin: 0;
  padding-left: 0;
  list-style: none;   /* removes bullets */
}
.ev-list li {
  margin: 2px 0;
}

.cal-cell.today {
  background: #f0f7ff;        /* light blue background */
  border: 2px solid #5B8DEF;  /* blue border */
}
.cal-cell.today .day {
  color: #000;
  font-weight: 700;
}

/* Rise of the Ancients Countdown Timer */
.rise-of-ancients-countdown {
    background: transparent;
    color: white;
    padding: 0;
    border-radius: 0;
    margin-bottom: 15px;
    box-shadow: 0 0 0;
    border: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    min-height: auto;
    width: 100%;
    flex-wrap: nowrap;
}

.countdown-image {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
    display: block;
    border: none;
    position: relative;
    z-index: 2;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 0;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-left: 0;
    min-width: 350px;
}

.countdown-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 1;
    color: #1a1a1a;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    text-align: center;
    position: relative;
    z-index: 2;
}

.countdown-timer {
    position: relative;
    padding: 16px 24px;
    border-radius: 12px;
    background: linear-gradient(90deg, #0066FF, #9933FF, #FF6600);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: auto;
    flex-shrink: 0;
}

.countdown-timer::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    z-index: 1;
}

.countdown-time {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #CCCCCC;
    text-shadow: 0 0 3px rgba(204, 204, 204, 0.3);
    position: relative;
    z-index: 2;
    text-align: left;
}

.countdown-time-labels {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    position: relative;
    z-index: 2;
    justify-content: center;
    align-items: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.time-value {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    text-shadow: none;
}

.time-label {
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* Force center alignment for Crypts table count and points columns */
#cryptsRankingTable td.count-column,
#cryptsRankingTable td.points-column,
#cryptsRankingTable th.count-column,
#cryptsRankingTable th.points-column {
    text-align: center !important;
}

/* Special Ranking Styles for Top 3 Places */
.rank-column {
    position: relative;
}

.rank-1st {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b4513;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    border: 2px solid #ffd700;
}

.rank-2nd {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #4a4a4a;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
    border: 2px solid #c0c0c0;
}

.rank-3rd {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #8b4513;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
    border: 2px solid #cd7f32;
}

/* Hover effects for special ranks */
.rank-1st:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

.rank-2nd:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.6);
}

.rank-3rd:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.6);
}
