/* Light Theme */
[data-theme="light"] {
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #c77dff 100%);
    --surface-gradient: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%);
    --card-gradient: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    --border-color: rgba(124, 58, 237, 0.15);
    --shadow-color: rgba(124, 58, 237, 0.1);
    --text-primary: #1e293b;
    --text-secondary: #7c3aed;
    --text-muted: #64748b;
}

[data-theme="light"] body {
    background: #f8fafc;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(199, 125, 255, 0.08) 0%, transparent 40%);
}

[data-theme="light"] .header,
[data-theme="light"] .footer {
    background: var(--surface-gradient);
    border-color: var(--border-color);
    box-shadow: 0 4px 30px var(--shadow-color);
}

[data-theme="light"] .server-ip {
    background: var(--card-gradient);
    border-color: var(--border-color);
    color: var(--text-secondary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

[data-theme="light"] .server-ip:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 25px var(--shadow-color);
}

[data-theme="light"] .news-preview-item,
[data-theme="light"] .stat-card,
[data-theme="light"] .payment-history,
[data-theme="light"] .quick-stats {
    background: var(--card-gradient);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="light"] .news-preview-item:hover,
[data-theme="light"] .stat-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 30px var(--shadow-color);
}

[data-theme="light"] .news-preview-title,
[data-theme="light"] .section-title {
    color: var(--text-secondary);
    border-bottom-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .news-preview-item h4 {
    color: var(--text-primary);
}

[data-theme="light"] .news-preview-content {
    color: var(--text-muted);
}

[data-theme="light"] .news-preview-date {
    color: var(--text-secondary);
}

[data-theme="light"] .stat-value {
    color: var(--text-secondary);
}

[data-theme="light"] .stat-label {
    color: var(--text-muted);
}

[data-theme="light"] .payment-name {
    color: var(--text-primary);
}

[data-theme="light"] .payment-date {
    color: var(--text-muted);
}

[data-theme="light"] .payment-amount {
    color: #10b981;
}

[data-theme="light"] .nav-btn {
    background: var(--card-gradient);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .nav-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(199, 125, 255, 0.1) 100%);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--text-secondary);
}

[data-theme="light"] .theme-toggle {
    background: var(--card-gradient);
    border-color: var(--border-color);
    color: var(--text-secondary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

[data-theme="light"] .theme-toggle:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(199, 125, 255, 0.2) 100%);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--text-secondary);
}

[data-theme="light"] .server-status-bar {
    background: var(--card-gradient);
    border-color: var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

[data-theme="light"] .status-item {
    color: var(--text-secondary);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.3);
}

[data-theme="light"] ::selection {
    background: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
}

/* Theme Toggle Animation */
.theme-toggle {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
}

[data-theme="light"] .theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
}

/* Theme Transition */
body,
.header,
.footer,
.server-ip,
.news-preview-item,
.stat-card,
.payment-history,
.quick-stats,
.nav-btn,
.theme-toggle,
.server-status-bar {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Light Theme Styles */
.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
}

.light-theme .header {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
}

.light-theme .header::before {
    background: linear-gradient(90deg, transparent, #a855f7, #c084fc, #a855f7, transparent);
}

.light-theme .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: #e2e8f0;
    color: #7c3aed;
}

.light-theme .theme-toggle:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
}

.light-theme .logo {
    color: #7c3aed;
    text-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.light-theme .tagline {
    color: #64748b;
}

.light-theme .server-ip {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    border-color: #e2e8f0;
    color: #7c3aed;
}

.light-theme .server-ip:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
}

.light-theme .stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}

.light-theme .stat-card:hover {
    border-color: #c084fc;
    box-shadow: 0 8px 30px rgba(192, 132, 252, 0.15);
}

.light-theme .stat-value {
    color: #7c3aed;
}

.light-theme .stat-label {
    color: #64748b;
}

.light-theme .payment-history,
.light-theme .quick-stats,
.light-theme .news-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}

.light-theme .section-title,
.light-theme .news-preview-title {
    color: #7c3aed;
    border-bottom-color: #e2e8f0;
}

.light-theme .payment-item,
.light-theme .news-preview-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-color: #f1f5f9;
    border-left-color: #c084fc;
}

.light-theme .payment-item:hover,
.light-theme .news-preview-item:hover {
    border-left-color: #7c3aed;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.light-theme .payment-name,
.light-theme .news-preview-item h4 {
    color: #1e293b;
}

.light-theme .payment-date {
    color: #64748b;
}

.light-theme .news-preview-date {
    color: #7c3aed;
}

.light-theme .quick-stats .stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-color: #f1f5f9;
}

.light-theme .quick-stats .stat-card:hover {
    border-color: #c084fc;
}

.light-theme .loading {
    border-color: #e2e8f0;
    border-top-color: #7c3aed;
}

.light-theme .developer-credit .animated-text {
    background: linear-gradient(
        45deg,
        #1a1a2e,
        #16213e,
        #0f172a,
        #1e293b,
        #1a1a2e
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: darkGradientShift 6s ease infinite;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    font-weight: 700;
}

@keyframes darkGradientShift {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(150%) brightness(90%);
    }
    25% {
        filter: hue-rotate(90deg) saturate(150%) brightness(90%);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg) saturate(150%) brightness(90%);
    }
    75% {
        filter: hue-rotate(270deg) saturate(150%) brightness(90%);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg) saturate(150%) brightness(90%);
    }
}

.light-theme .server-status-bar {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

.light-theme .status-item {
    color: #7c3aed;
}

.light-theme .status-value {
    background: transparent;
    color: #7c3aed;
}

.light-theme .status-online {
    color: #10b981;
}

.light-theme .status-offline {
    color: #ef4444;
}

.light-theme .status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.light-theme .status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.light-theme ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.light-theme ::-webkit-scrollbar-thumb {
    background: #c084fc;
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.light-theme ::selection {
    background: #c084fc;
    color: #fff;
} 