/* Players Statistics Styles */
/* Timeline Container */
.timeline-container {
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0;
}

/* Compact Timeline Styles */
.compact-timeline {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-days {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-day-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.02);
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.timeline-day-compact:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
}

.day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    gap: 0.25rem;
}

.day-date {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--bs-body-color);
}

.day-time {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    background: var(--bs-primary);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.day-timeline {
    position: relative;
    flex: 1;
    height: 20px;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.05) 0%, 
        transparent 50%, 
        rgba(0,0,0,0.05) 100%);
    border-radius: 0.25rem;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: visible;
}

.timeline-session-compact {
    position: absolute;
    top: 2px;
    height: calc(100% - 4px);
    border-radius: 0.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.timeline-session-compact:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    z-index: 10;
    filter: brightness(1.1);
}

.timeline-session-compact.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 1px solid #1e7e34;
    animation: pulse 2s infinite;
}

.timeline-session-compact:not(.active) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 1px solid #004085;
}

/* Timeline axis wrapper - ta sama struktura co timeline-day-compact */
.timeline-axis-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.02);
    border-top: 2px solid var(--bs-border-color);
    margin: 0 -0.75rem -0.75rem -0.75rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.day-header-spacer {
    min-width: 60px;
    width: 60px;
    flex-shrink: 0;
    /* Dodaj małą korekcję żeby wyrównać z day-header */
    margin-right: 2px;
}

.timeline-axis-content {
    position: relative;
    flex: 1;
    height: 30px;
}

.hour-tick {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hour-tick::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0.5rem;
    background-color: var(--bs-border-color);
}

.hour-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    border: 1px solid rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Timeline Legend */
.timeline-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-legend-box {
    width: 20px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.timeline-legend-box.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 1px solid #1e7e34;
}

.timeline-legend-box.inactive {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 1px solid #004085;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}


/* Badge styles */
.badge-table {
    color: white !important;
}

/* Experience badges - red palette (spójne z przyciskami losers) */
.badge-exp-level-0 {
    background-color: #fee2e2 !important;
    color: #7f1d1d !important;
}

.badge-exp-level-1 {
    background-color: #fecaca !important;
    color: #991b1b !important;
}

.badge-exp-level-2 {
    background-color: #f87171 !important;
    color: #ffffff !important;
}

.badge-exp-level-3 {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.badge-exp-level-4 {
    background-color: #b91c1c !important;
    color: #ffffff !important;
}

.badge-exp-positive {
    background-color: #16a34a !important;
    color: #f0fdf4 !important;
}

.badge-exp-negative {
    background-color: #dc2626 !important;
    color: #fef2f2 !important;
}

/* Time badges - green palette (spójne z przyciskami gainers) */
.badge-time-level-0 {
    background-color: #ebedf0 !important;
    color: #8b949e !important;
}

.badge-time-level-1 {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}

.badge-time-level-2 {
    background-color: #86efac !important;
    color: #15803d !important;
}

.badge-time-level-3 {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

.badge-time-level-4 {
    background-color: #15803d !important;
    color: #ffffff !important;
}

/* Autocomplete styling */
#playerNameInput,
#playerNameInputCompact {
    background-color: #fafafa !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

#playerNameInput:focus,
#playerNameInputCompact:focus {
    background-color: #fff !important;
    border-color: #146c43 !important;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    background: #fafafa;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    margin-top: 0;
}

.autocomplete-results.show {
    display: block;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #e8e8e8;
}

.autocomplete-item:first-child {
    padding-top: 12px;
}

.autocomplete-item:last-child {
    padding-bottom: 12px;
    border-radius: 0 0 8px 8px;
}

.autocomplete-loading {
    padding: 10px 15px;
    text-align: center;
    color: #888;
}

/* Activity Calendar Styles (GitHub-style) */
.activity-calendar-container {
    padding: 1rem 0;
}

/* Toggle Switch for Activity Mode */
.activity-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #28a745;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #dc3545;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-labels {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.toggle-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-label.active {
    color: var(--bs-body-color);
    font-weight: 600;
}

.activity-month-group {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: var(--bs-body-bg);
}

.activity-month-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--bs-body-color);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
    gap: 4px;
    justify-content: start;
}

.activity-day {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.activity-day:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.activity-day-number {
    position: relative;
    z-index: 1;
}

/* GitHub-style contrib squares - Time levels (Green scale) */
.contrib-square {
    display: inline-block;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.contrib-square:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contrib-square-level-0 {
    background-color: #ebedf0;
    border: 1px solid #d0d7de;
}

.contrib-square-level-1 {
    background-color: #9be9a8;
    border: 1px solid #7cc085;
}

.contrib-square-level-2 {
    background-color: #40c463;
    border: 1px solid #30a14e;
}

.contrib-square-level-3 {
    background-color: #30a14e;
    border: 1px solid #216e39;
}

.contrib-square-level-4 {
    background-color: #216e39;
    border: 1px solid #1a5229;
}

/* Experience levels (Red/Orange scale) */
.contrib-square-exp-level-0 {
    background-color: #ebedf0;
    border: 1px solid #d0d7de;
}

.contrib-square-exp-level-1 {
    background-color: #ffcccb;
    border: 1px solid #ff9999;
}

.contrib-square-exp-level-2 {
    background-color: #ff6b6b;
    border: 1px solid #ff4444;
}

.contrib-square-exp-level-3 {
    background-color: #dc143c;
    border: 1px solid #b0102a;
}

.contrib-square-exp-level-4 {
    background-color: #8b0000;
    border: 1px solid #6b0000;
}

.contrib-square-today {
    border: 2px solid #0969da !important;
    box-shadow: 0 0 0 1px rgba(9, 105, 218, 0.3);
}

/* Activity levels - Green scale for active days (legacy, kept for compatibility) */
.activity-level-0 {
    background-color: #ebedf0;
    color: #8b949e;
    border-color: #d0d7de;
}

.activity-level-1 {
    background-color: #9be9a8;
    color: #1a1a1a;
    border-color: #7cc085;
}

.activity-level-2 {
    background-color: #40c463;
    color: #ffffff;
    border-color: #30a14e;
}

.activity-level-3 {
    background-color: #30a14e;
    color: #ffffff;
    border-color: #216e39;
}

.activity-level-4 {
    background-color: #216e39;
    color: #ffffff;
    border-color: #1a5229;
}

/* Experience levels - Red/Orange scale */
.activity-exp-level-0 {
    background-color: #ebedf0;
    color: #8b949e;
    border-color: #d0d7de;
}

.activity-exp-level-1 {
    background-color: #ffcccb;
    color: #1a1a1a;
    border-color: #ff9999;
}

.activity-exp-level-2 {
    background-color: #ff6b6b;
    color: #ffffff;
    border-color: #ff4444;
}

.activity-exp-level-3 {
    background-color: #dc143c;
    color: #ffffff;
    border-color: #b0102a;
}

.activity-exp-level-4 {
    background-color: #8b0000;
    color: #ffffff;
    border-color: #6b0000;
}

/* Activity Legend */
.activity-legend-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.activity-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.activity-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid transparent;
}

/* Pulsowanie dla dzisiejszego dnia */
.activity-day.contrib-square-today {
    position: relative;
    animation: activityPulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(33, 184, 107, 0.0);
}

@keyframes activityPulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 184, 107, 0.55); transform: scale(1.0); }
    50% { box-shadow: 0 0 0 6px rgba(33, 184, 107, 0.0); transform: scale(1.06); }
    100% { box-shadow: 0 0 0 0 rgba(33, 184, 107, 0.0); transform: scale(1.0); }
}

/* SEO Section Styles */
.seo-description-box {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.seo-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.seo-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.seo-paragraph {
    font-size: 0.95rem;
    text-align: justify;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.faq-list {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.faq-list li {
    margin-bottom: 0.5rem;
}

/* Dark Mode Support */
.dark-mode .timeline-day {
    background-color: #1a1d24;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.dark-mode .timeline-day h6 {
    color: #f5f5f7;
}

.dark-mode .timeline-sessions {
    background: linear-gradient(to right, 
        rgba(0,0,0,0.3) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.3) 100%);
    border-color: rgba(255,255,255,0.15);
}

.dark-mode .timeline-session {
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dark-mode .timeline-session:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.dark-mode .timeline-session.active .session-bar {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border: 1.5px solid #059669;
}

.dark-mode .timeline-session:not(.active) .session-bar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1.5px solid #1e40af;
}

.dark-mode .timeline-legend-box.active {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border: 1px solid #059669;
}

.dark-mode .timeline-legend-box.inactive {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #1e40af;
}

.dark-mode .hour-marker {
    color: #e0e0e0;
    background-color: rgba(26, 29, 36, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}

.dark-mode .hour-marker-main {
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(26, 29, 36, 1);
}

.dark-mode .hour-marker-minor {
    opacity: 0.6;
}

.dark-mode .hour-marker::before {
    background-color: #e0e0e0;
    opacity: 0.6;
}

.dark-mode .hour-marker-main::before {
    opacity: 0.8;
}

.dark-mode .hour-marker-minor::before {
    opacity: 0.3;
}

.dark-mode .timeline-hours {
    border-top-color: rgba(255,255,255,0.2);
}

/* Dark mode for compact timeline */
.dark-mode .compact-timeline {
    background: #1a1d24;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.dark-mode .timeline-day-compact {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.dark-mode .timeline-day-compact:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.dark-mode .day-date {
    color: #f5f5f7;
}

.dark-mode .day-time {
    background: var(--bs-primary);
    color: white;
}

.dark-mode .day-timeline {
    background: linear-gradient(to right, 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%, 
        rgba(255,255,255,0.1) 100%);
    border-color: rgba(255,255,255,0.15);
}

.dark-mode .timeline-session-compact.active {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border: 1px solid #059669;
}

.dark-mode .timeline-session-compact:not(.active) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #1e40af;
}

.dark-mode .timeline-axis-wrapper {
    background: rgba(255,255,255,0.05);
    border-top-color: rgba(255,255,255,0.2);
}

.dark-mode .hour-tick::before {
    background-color: rgba(255,255,255,0.3);
}

.dark-mode .hour-label {
    color: #e0e0e0;
    background: rgba(26, 29, 36, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
}

.dark-mode .badge-table {
    color: #000 !important;
    font-weight: 600;
}

.dark-mode .badge-table.bg-success {
    background-color: #28a745 !important;
}

.dark-mode .badge-table.bg-danger {
    background-color: #dc3545 !important;
}

.dark-mode .badge-table.bg-info {
    background-color: #17a2b8 !important;
}

.dark-mode .badge-table.bg-primary {
    background-color: #007bff !important;
}

.dark-mode .badge-table.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.dark-mode .badge-exp-level-0 {
    background-color: #8b0000 !important;
    color: #ffffff !important;
}

.dark-mode .badge-exp-level-1 {
    background-color: #b22222 !important;
    color: #ffffff !important;
}

.dark-mode .badge-exp-level-2 {
    background-color: #dc143c !important;
    color: #ffffff !important;
}

.dark-mode .badge-exp-level-3 {
    background-color: #ff4444 !important;
    color: #000000 !important;
}

.dark-mode .badge-exp-level-4 {
    background-color: #ff6b6b !important;
    color: #000000 !important;
}

.dark-mode .badge-exp-positive {
    background-color: #0d9488 !important;
    color: #e0fffa !important;
}

.dark-mode .badge-exp-negative {
    background-color: #dc2626 !important;
    color: #ffe5e5 !important;
}

.dark-mode .badge-time-level-0 {
    background-color: #2d333b !important;
    color: #7d8590 !important;
}

.dark-mode .badge-time-level-1 {
    background-color: #0e4429 !important;
    color: #ffffff !important;
}

.dark-mode .badge-time-level-2 {
    background-color: #006d32 !important;
    color: #ffffff !important;
}

.dark-mode .badge-time-level-3 {
    background-color: #26a641 !important;
    color: #ffffff !important;
}

.dark-mode .badge-time-level-4 {
    background-color: #39d353 !important;
    color: #000000 !important;
}

.dark-mode #playerNameInput,
.dark-mode #playerNameInputCompact {
    background-color: #2c2c2c !important;
    color: #f5f5f7 !important;
    border: 0.5px solid #444 !important;
}

.dark-mode #playerNameInput::placeholder,
.dark-mode #playerNameInputCompact::placeholder {
    color: #f5f5f7 !important;
    opacity: 0.8;
}

.dark-mode #playerNameInput:focus,
.dark-mode #playerNameInputCompact:focus {
    background-color: #2c2c2c !important;
    border-color: #146c43 !important;
}

.dark-mode .autocomplete-results {
    background: #2c2c2c;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dark-mode .autocomplete-item {
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dark-mode .autocomplete-item:hover,
.dark-mode .autocomplete-item.active {
    background-color: #3a3a3a;
}

.dark-mode .autocomplete-loading {
    color: #ccc;
}

.dark-mode .toggle-label {
    color: #8b949e;
}

.dark-mode .toggle-label.active {
    color: #f5f5f7;
}

.dark-mode .activity-month-group {
    background-color: #1a1d24;
    border-color: rgba(255,255,255,0.2);
}

.dark-mode .activity-month-label {
    color: #f5f5f7;
}

.dark-mode .activity-day:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.dark-mode .activity-level-0 {
    background-color: #2d333b;
    color: #7d8590;
    border-color: #444c56;
}

.dark-mode .activity-level-1 {
    background-color: #0e4429;
    color: #ffffff;
    border-color: #006d32;
}

.dark-mode .activity-level-2 {
    background-color: #006d32;
    color: #ffffff;
    border-color: #26a641;
}

.dark-mode .activity-level-3 {
    background-color: #26a641;
    color: #ffffff;
    border-color: #39d353;
}

.dark-mode .activity-level-4 {
    background-color: #39d353;
    color: #000000;
    border-color: #7ee787;
}

.dark-mode .activity-exp-level-0 {
    background-color: #2d333b;
    color: #7d8590;
    border-color: #444c56;
}

.dark-mode .activity-exp-level-1 {
    background-color: #5a1a1a;
    color: #ffffff;
    border-color: #8b0000;
}

.dark-mode .activity-exp-level-2 {
    background-color: #8b0000;
    color: #ffffff;
    border-color: #b22222;
}

.dark-mode .activity-exp-level-3 {
    background-color: #dc143c;
    color: #ffffff;
    border-color: #ff4444;
}

.dark-mode .activity-exp-level-4 {
    background-color: #ff4444;
    color: #000000;
    border-color: #ff6b6b;
}

.dark-mode .activity-day.contrib-square-today {
    animation: activityPulseDark 1.6s ease-in-out infinite;
}

@keyframes activityPulseDark {
    0% { box-shadow: 0 0 0 0 rgba(33, 230, 163, 0.3); transform: scale(1.0); }
    50% { box-shadow: 0 0 0 6px rgba(33, 230, 163, 0.0); transform: scale(1.06); }
    100% { box-shadow: 0 0 0 0 rgba(33, 230, 163, 0.0); transform: scale(1.0); }
}

.dark-mode .seo-title {
    color: #fff;
}

.dark-mode .seo-subtitle {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-day {
        padding: 0.5rem;
    }
    
    .timeline-sessions {
        height: 30px;
    }
    
    .timeline-session {
        top: 2px;
        height: calc(100% - 4px);
    }
    
    .session-time {
        font-size: 0.6rem;
    }
    
    .hour-marker {
        font-size: 0.6rem;
    }
    
    .timeline-hours {
        height: 20px;
    }
    
    .activity-grid {
        grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
        gap: 3px;
    }
    
    .activity-day {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .activity-legend-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .activity-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }
    
    .activity-day {
        width: calc((100vw - 80px) / 7);
        max-width: 40px;
        height: calc((100vw - 80px) / 7);
        max-height: 40px;
        font-size: 0.55rem;
    }
}

/* Alpha Version Notice Banner */
.alpha-notice-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(251, 146, 60, 0.12) 50%, rgba(253, 186, 116, 0.12) 100%);
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.alpha-notice-banner .d-flex {
    justify-content: center;
    text-align: center;
}

.alpha-notice-icon-inline {
    font-size: 0.875rem;
    color: #ea580c;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.alpha-notice-title {
    color: #c2410c;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* Dark mode styles for alpha banner */
.dark-mode .alpha-notice-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(251, 146, 60, 0.18) 50%, rgba(253, 186, 116, 0.18) 100%);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.dark-mode .alpha-notice-icon-inline {
    color: #fb923c;
}

.dark-mode .alpha-notice-title {
    color: #fdba74;
}

/* Responsive adjustments for alpha banner */
@media (max-width: 768px) {
    .alpha-notice-banner {
        padding: 0.625rem 1rem;
    }
    
    .alpha-notice-icon-inline {
        font-size: 0.75rem;
        margin-right: 0.375rem;
    }
    
    .alpha-notice-title {
        font-size: 0.8125rem;
    }
}

/* Player Overview Summary Styles */
.player-level-badge {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.15) 0%, rgba(77, 203, 255, 0.15) 100%);
    border: 2px solid rgba(77, 163, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.player-level-badge.online {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
    border-color: rgba(40, 167, 69, 0.4);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse-online 2s infinite;
}

.player-level-badge.offline {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15) 0%, rgba(108, 117, 125, 0.15) 100%);
    border-color: rgba(108, 117, 125, 0.3);
}

.player-level-badge .level-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-body-color);
}

.player-level-badge .level-label {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.status-indicator.status-online {
    color: #28a745;
    animation: pulse-dot 2s infinite;
}

.status-indicator.status-offline {
    color: #6c757d;
}

.status-indicator i {
    font-size: 0.6rem;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Dark mode for player overview */
.dark-mode .player-level-badge {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.2) 0%, rgba(77, 203, 255, 0.2) 100%);
    border-color: rgba(77, 163, 255, 0.4);
}

.dark-mode .player-level-badge.online {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(32, 201, 151, 0.2) 100%);
    border-color: rgba(40, 167, 69, 0.5);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
}

.dark-mode .player-level-badge.offline {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.2) 0%, rgba(108, 117, 125, 0.2) 100%);
    border-color: rgba(108, 117, 125, 0.4);
}

.dark-mode .player-level-badge .level-number {
    color: #ffffff;
}

.dark-mode .status-indicator.status-online {
    color: #10b981;
}

.dark-mode .status-indicator.status-offline {
    color: #9ca3af;
}

/* Month separator in statistics table */
.month-separator {
    border-top: 2px solid rgba(0, 0, 0, 0.1) !important;
}

.month-separator td {
    padding-top: 1rem !important;
}

.dark-mode .month-separator {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

/* Responsive adjustments for player overview */
@media (max-width: 768px) {
    .player-level-badge {
        width: 70px;
        height: 70px;
    }
    
    .player-level-badge .level-number {
        font-size: 1.75rem;
    }
    
    .player-level-badge .level-label {
        font-size: 0.65rem;
    }
}

/* Player Header Card with Online/Offline Status */
.player-header-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

.player-header-card.player-online {
    border: 2px solid rgba(40, 167, 69, 0.6) !important;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4), 0 4px 12px rgba(40, 167, 69, 0.15);
    animation: player-online-pulse 2s infinite;
}

.player-header-card.player-offline {
    border: 2px solid rgba(108, 117, 125, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.player-header-card.player-online:hover {
    border-color: rgba(40, 167, 69, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2), 0 6px 16px rgba(40, 167, 69, 0.2);
}

.player-header-card.player-offline:hover {
    border-color: rgba(108, 117, 125, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@keyframes player-online-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4), 0 4px 12px rgba(40, 167, 69, 0.15);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(40, 167, 69, 0), 0 4px 12px rgba(40, 167, 69, 0.2);
    }
}

/* Dark mode for player header */
.dark-mode .player-header-card.player-online {
    border-color: rgba(40, 167, 69, 0.7) !important;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5), 0 4px 12px rgba(40, 167, 69, 0.25);
}

.dark-mode .player-header-card.player-offline {
    border-color: rgba(108, 117, 125, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .player-header-card.player-online:hover {
    border-color: rgba(40, 167, 69, 0.9) !important;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.3), 0 6px 16px rgba(40, 167, 69, 0.3);
}

.dark-mode .player-header-card.player-offline:hover {
    border-color: rgba(108, 117, 125, 0.6) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Player Overview - WorldPopularity Style */
.player-online-bg {
    border: 2px solid rgba(40, 167, 69, 0.3) !important;
    background: rgba(40, 167, 69, 0.05) !important;
}

.player-offline-bg {
    border: 2px solid rgba(108, 117, 125, 0.2) !important;
    background: rgba(108, 117, 125, 0.03) !important;
}

.dark-mode .player-online-bg {
    border-color: rgba(40, 167, 69, 0.4) !important;
    background: rgba(40, 167, 69, 0.08) !important;
}

.dark-mode .player-offline-bg {
    border-color: rgba(108, 117, 125, 0.3) !important;
    background: rgba(108, 117, 125, 0.05) !important;
}

.player-online-card {
    border: 1px solid rgba(40, 167, 69, 0.4) !important;
    background: rgba(40, 167, 69, 0.08) !important;
}

.player-offline-card {
    border: 1px solid rgba(108, 117, 125, 0.2) !important;
    background: rgba(108, 117, 125, 0.05) !important;
}

.dark-mode .player-online-card {
    border-color: rgba(40, 167, 69, 0.5) !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

.dark-mode .player-offline-card {
    border-color: rgba(108, 117, 125, 0.3) !important;
    background: rgba(108, 117, 125, 0.08) !important;
}

/* Player Header Styles (WorldPopularity style) */
.player-name-gradient {
    font-size: 2.5rem;
    font-weight: 200;
    background: linear-gradient(90deg, #ff375f, #ff2d55, #ff0037);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.dark-mode .player-name-gradient {
    background: linear-gradient(90deg, #ff6b9d, #ff4d7a, #ff3366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-online-header {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%);
    border: 2px solid rgba(40, 167, 69, 0.4);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.15);
}

.player-offline-header {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.08) 0%, rgba(108, 117, 125, 0.04) 100%);
    border: 2px solid rgba(108, 117, 125, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dark-mode .player-online-header {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.08) 100%);
    border-color: rgba(40, 167, 69, 0.5);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.25);
}

.dark-mode .player-offline-header {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.12) 0%, rgba(108, 117, 125, 0.06) 100%);
    border-color: rgba(108, 117, 125, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.player-info-row {
    font-size: 1rem;
}

.player-info-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--bs-body-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
}

.player-info-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: var(--bs-body-color);
}

.player-info-item i {
    color: #667eea;
    font-size: 0.9rem;
}

.player-info-item.player-status-online {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.player-info-item.player-status-online:hover {
    background: rgba(40, 167, 69, 0.25);
    border-color: rgba(40, 167, 69, 0.4);
}

.player-info-item.player-status-online i {
    color: #28a745;
}

.dark-mode .player-info-item {
    background: rgba(28, 28, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f2f2f7;
}

.dark-mode .player-info-item:hover {
    background: rgba(28, 28, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f2f2f7;
}

.dark-mode .player-info-item i {
    color: #8e8e93;
}

.dark-mode .player-info-item.player-status-online {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.4);
    color: #10b981;
}

.dark-mode .player-info-item.player-status-online:hover {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
}

.dark-mode .player-info-item.player-status-online i {
    color: #10b981;
}

/* Responsive adjustments for player header */
@media (max-width: 768px) {
    .player-name-gradient {
        font-size: 2rem;
    }
    
    .player-info-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Quick Action Cards */
.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 100%;
    color: inherit;
}

.quick-action-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.quick-action-content {
    flex: 1;
    min-width: 0;
}

.quick-action-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

.quick-action-description {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Dark mode for quick action cards */
.dark-mode .quick-action-card {
    background: rgba(28, 28, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .quick-action-card:hover {
    background: rgba(28, 28, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dark-mode .quick-action-title {
    color: #f2f2f7;
}

.dark-mode .quick-action-description {
    color: #8e8e93;
}

/* Player Status Card Styles for Overview Tab */
.world-stat-card.player-online-status {
    border-color: rgba(40, 167, 69, 0.3) !important;
    background: rgba(40, 167, 69, 0.05);
}

.dark-mode .world-stat-card.player-online-status {
    border-color: rgba(40, 167, 69, 0.4) !important;
    background: rgba(40, 167, 69, 0.1);
}

.world-stat-card.player-offline-status {
    border-color: rgba(108, 117, 125, 0.3) !important;
    background: rgba(108, 117, 125, 0.05);
}

.dark-mode .world-stat-card.player-offline-status {
    border-color: rgba(108, 117, 125, 0.4) !important;
    background: rgba(108, 117, 125, 0.1);
}

.player-online-text {
    color: #28a745;
}

.dark-mode .player-online-text {
    color: #10b981;
}

.player-offline-text {
    color: #6c757d;
}

.dark-mode .player-offline-text {
    color: #8e8e93;
}

.player-online-text i.fa-circle {
    color: #28a745;
}

.dark-mode .player-online-text i.fa-circle {
    color: #10b981;
}

.player-offline-text i.fa-circle {
    color: #6c757d;
}

.dark-mode .player-offline-text i.fa-circle {
    color: #8e8e93;
}

/* Chart View Toggle (Apple Health style) */
.chart-view-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.chart-view-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.dark-mode .chart-view-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chart-view-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chart-view-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--bs-body-color);
}

.dark-mode .chart-view-btn {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .chart-view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

.chart-view-btn.active {
    background: var(--bs-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode .chart-view-btn.active {
    background: var(--bs-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.chart-view-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.25);
}

.dark-mode .chart-view-btn:focus {
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.4);
}

.chart-view-btn.active:focus {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(var(--bs-primary-rgb), 0.25);
}

.dark-mode .chart-view-btn.active:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(var(--bs-primary-rgb), 0.4);
}

