body {
    font-family: 'Poppins', sans-serif;
    background-color: #09090b;
    color: #e4e4e7;
    margin: 0;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: #0c0c0e;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 48px;
    max-width: 1200px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #22d3ee, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.logo-frame {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid rgba(34, 211, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    margin-bottom: 16px;
    overflow: hidden;
}

.logo-frame img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.tab-content.hidden {
    display: none;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(34, 211, 238, 0.2);
}

.stat-label {
    font-size: 13px;
    color: #71717a;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.chart-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    margin-top: 32px;
}

.table-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 32px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    color: #71717a;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d4d4d8;
}

tr:last-child td {
    border-bottom: none;
}

.logout-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.logout-btn:hover {
    opacity: 0.8;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.download-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 211, 238, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

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

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #09090b;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(34, 211, 238, 0.1);
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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