/* StarAPI Affiliate - Custom Styles */

/* Nav active state */
.nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    color: #2563eb !important;
}
.nav-link.active i {
    color: #3b82f6;
}

/* Leaderboard Top 3 */
.leaderboard-top3 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1rem;
    justify-items: center;
}
.leaderboard-medal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 180px;
}
.leaderboard-medal.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
    order: 2;
}
.leaderboard-medal.silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #1f2937;
    box-shadow: 0 4px 24px rgba(156, 163, 175, 0.3);
    order: 1;
}
.leaderboard-medal.bronze {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #fff;
    box-shadow: 0 4px 24px rgba(217, 119, 6, 0.3);
    order: 3;
}
.leaderboard-rank {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.leaderboard-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: center;
}
.leaderboard-stat {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Filter buttons */
.filter-btn.active {
    background: #2563eb !important;
    color: white !important;
}

/* User cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-avatar-small {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}
.user-name-cell {
    display: flex;
    flex-direction: column;
}
.user-name-text {
    font-weight: 500;
}
.user-name-sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Consumption bar */
.consumption-bar {
    width: 80px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}
.consumption-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 2px;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Badge styles */
.badge-level {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
}
.badge-regular {
    background: #e5e7eb;
    color: #374151;
}
.badge-silent {
    background: #f3f4f6;
    color: #6b7280;
}

/* Status tags */
.status-tag {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}
.status-active {
    background: #dcfce7;
    color: #166534;
}
.status-online {
    background: #dbeafe;
    color: #1e40af;
}
.status-offline {
    background: #f3f4f6;
    color: #6b7280;
}

/* Page buttons */
.page-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
    background: #f3f4f6;
}
.page-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
}
.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.empty-state-message {
    color: #9ca3af;
}

/* Recharge item */
.recharge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.recharge-item:last-child {
    border-bottom: none;
}
.recharge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.recharge-date {
    font-size: 0.75rem;
    color: #9ca3af;
}
.recharge-type {
    font-weight: 500;
}
.recharge-amount {
    font-weight: 600;
    color: #10b981;
}

/* Model tag */
.model-tag {
    padding: 2px 8px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Copy button */
.copy-btn.copied {
    background: #10b981 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Tab active state */
.customer-tab.active {
    border-bottom-color: #2563eb !important;
    color: #2563eb !important;
}
