/* Bot Statistics Dashboard Styles */
/* Base styles included - no external imports needed */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --primary-dark: #0a0e13;
    --secondary-dark: #151922;
    --card-dark: #1a1f2e;
    --accent-gold: #10b981;
    --accent-gold-dark: #10b981;
    --accent-blue: #2a9df4;
    --text-light: #e8e9ed;
    --text-gray: #a0a5b8;
    --text-muted: #6b7280;
    --border-dark: #2d3548;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --shadow-strong: rgba(0, 0, 0, 0.5);
    --gradient-dark: linear-gradient(135deg, #0a0e13 0%, #1a1f2e 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(42, 157, 244, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.05) 0px, transparent 50%);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 19, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-dark);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(15, 232, 55, 0.3);
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    color: var(--text-light);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.5px;
}

.nav-menu a.active {
    color: var(--accent-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Dashboard Specific Styles */
.dashboard-container {
    max-width: 1800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-dark);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.dashboard-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-strong);
    border-color: var(--accent-gold);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: var(--success-green);
}

.stat-change.negative {
    color: var(--danger-red);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 2rem;
}

.chart-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Command Stats Table */
.commands-table-container {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.commands-table-container h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
}

.commands-table thead {
    background: var(--secondary-dark);
}

.commands-table th {
    padding: 1rem;
    text-align: left;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.commands-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-dark);
    color: var(--text-light);
}

.commands-table tbody tr {
    transition: background-color 0.2s ease;
}

.commands-table tbody tr:hover {
    background: var(--secondary-dark);
}

.command-name {
    font-weight: 600;
    color: var(--text-light);
}

.command-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-blue);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Bot Status Indicator */
.bot-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-dark);
    border-radius: 20px;
    border: 1px solid var(--border-dark);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success-green);
    box-shadow: 0 0 10px var(--success-green);
}

.status-dot.offline {
    background: var(--danger-red);
    box-shadow: 0 0 10px var(--danger-red);
}

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

/* Activity Timeline */
.activity-timeline {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.activity-timeline h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-left: 2px solid var(--border-dark);
    margin-left: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.timeline-time {
    color: var(--text-gray);
    font-size: 0.85rem;
    min-width: 100px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-description {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-dark);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

/* Error State */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-red);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--danger-red);
    margin: 2rem 0;
}

/* Refresh Button */
.refresh-btn {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--text-gray);
    padding: 40px 20px;
    margin-top: 4rem;
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

footer p {
    margin: 10px 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .commands-table {
        font-size: 0.85rem;
    }
    
    .commands-table th,
    .commands-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}
