:root {
    --scrollbar-bg: #111111;
    --scrollbar-thumb: #3b82f6;
    --scrollbar-thumb-hover: #1e40af;
    --scrollbar-width: 8px;
    --bg-color: #0a0a0a;
    --secondary-bg: #111111;
    --text-color: #ffffff;
    --text-secondary: #d1d5db;
    --border-color: #1e40af;
    --card-bg: linear-gradient(145deg, #0a0a0a, #111111);
    --features-bg: #111111;
    --features-text: #ffffff;
    --accent-color: #3b82f6;
    --accent-hover: #1e40af;
}

:root[data-theme="light"] {
    --scrollbar-bg: #e5e7eb;
    --scrollbar-thumb: #3b82f6;
    --scrollbar-thumb-hover: #1e40af;
    --bg-color: #f3f4f6;
    --secondary-bg: #ffffff;
    --text-color: #111827;
    --text-secondary: #4b5563;
    --border-color: #93c5fd;
    --card-bg: linear-gradient(145deg, #ffffff, #f3f4f6);
    --features-bg: #ffffff;
    --features-text: #111827;
    --accent-color: #3b82f6;
    --accent-hover: #1e40af;
}

body {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.3s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 20px;
    border: 2px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, var(--accent-color), var(--accent-hover));
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagination-arrow {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
}

.pagination-arrow:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.pagination-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--secondary-bg);
    color: var(--accent-color);
    transform: none;
    box-shadow: none;
}

.current-page {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.footer {
    background-color: var(--bg-color);
    border-top-color: var(--border-color);
    transition: background-color 0.5s ease, border-color 0.3s ease;
}

.border-theme {
    border-color: var(--border-color);
    transition: border-color 0.3s ease;
}

.text-muted {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.developer-badge {
    background-color: #1e40af !important;
    color: white !important;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card .text-2xl {
    font-size: 1.5rem; 
    font-weight: bold;
    color: var(--accent-color);
}

.stat-card .text-muted {
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
    border-color: var(--accent-color);
}

.stat-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-right: 0.75rem; 
    color: var(--accent-color);
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.shard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.shard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
    border-color: var(--accent-color);
}
.shard-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}
.shard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.shard-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

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

.shard-stat span:first-child {
    color: var(--text-secondary);
}

.shard-stat span:last-child {
    color: var(--accent-color);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

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

.no-shards-message {
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

.global-error-message {
    text-align: center;
    color: #ef4444;
    margin: 1rem 0;
    padding: 1rem;
    font-weight: normal; 
    font-size: 1rem; 
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #ef4444;
    padding: 2rem;
    border-radius: 1rem;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-hover);
    color: white;
}

.odometer.odometer-auto-theme, .odometer.odometer-theme-minimal {
    font-family: inherit;
    line-height: 1.1;
}

.odometer.odometer-auto-theme .odometer-digit, 
.odometer.odometer-theme-minimal .odometer-digit {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    color: var(--accent-color);
}

.shard-status-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 4px;
    position: relative;
    flex-shrink: 0;
}

.shard-status-good {
    background-color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
    animation: pulse-green 2s infinite;
}

.shard-status-medium {
    background-color: #eab308;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.8);
    animation: pulse-yellow 2s infinite;
}

.shard-status-bad {
    background-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.shard-card h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.shard-title-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.shard-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 4px; 
}
