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

:root {
    /* Light theme variables - Comfortable readability */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --accent-color: #667eea;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --purple-color: #8b5cf6;
    --item-bg: #f8fafc;
    --bg-secondary: #ffffff;
}

[data-theme="dark"] {
    /* Dark theme variables - Gentle on the eyes */
    --bg-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --card-bg: rgba(31, 41, 55, 0.95);
    --text-primary: #e5e7eb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #4b5563;
    --accent-color: #818cf8;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --purple-color: #a78bfa;
    --item-bg: #374151;
    --bg-secondary: #1f2937;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dashboard {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.title-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

[data-theme="light"] .main-title {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.add-bot-btn {
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(114, 137, 218, 0.3);
    white-space: nowrap;
}

.add-bot-btn:hover {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.5);
    color: white;
    text-decoration: none;
}

.report-issues-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
    white-space: nowrap;
}

.report-issues-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
    color: white;
    text-decoration: none;
}

.voice-samples-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.voice-samples-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    color: white;
    text-decoration: none;
}

.theme-toggle {
    background: var(--item-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.theme-icon {
    font-size: 1.2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.status-indicator.online {
    background: var(--success-color);
    color: white;
}

.status-indicator.offline {
    background: #ef4444;
    color: white;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

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

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

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--purple-color));
    border-radius: 12px;
}

.stat-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bottom-section {
    display: grid;
    gap: 1.5rem;
}

.panel {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.panel.wide {
    grid-column: 1 / -1;
}

.panel h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-list, .server-list, .activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--item-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.voice-name {
    font-weight: 500;
    color: var(--text-primary);
}

.voice-count {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--item-bg);
    border-radius: 8px;
    border-left: 3px solid var(--success-color);
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.server-name {
    font-weight: 500;
    color: var(--text-primary);
}

.server-members {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.server-messages {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--item-bg);
    border-radius: 8px;
    border-left: 3px solid var(--warning-color);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 80px;
    font-family: 'Courier New', monospace;
}

.activity-content {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.activity-user {
    font-weight: 500;
    color: var(--text-primary);
}

.activity-action {
    color: var(--text-secondary);
}

.activity-server {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.system-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.system-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--item-bg);
    border-radius: 8px;
    border-left: 3px solid var(--purple-color);
}

.stat-label {
    font-weight: 500;
    color: var(--text-primary);
}

.stat-data {
    background: var(--purple-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

/* Activity Graph Styles */
.activity-graph-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--item-bg);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

#activity-chart {
    width: 100% !important;
    height: 100% !important;
}

.graph-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.invite-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    margin-top: 0.5rem;
}

.invite-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    text-decoration: none;
    color: white;
}

/* Footer Styles */
.footer {
    margin-top: 3rem;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #ff7979);
}

.footer-bottom {
    background: var(--item-bg);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Gentle form and input styling */
input, select, textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 400;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Comfortable text styling */
.page-title, .step-title, .feature-title {
    color: var(--text-primary);
    font-weight: 600;
}

.page-subtitle, .step-content, .feature-description {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Subtle button styling */
button {
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Soft warning and info boxes */
.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--text-primary);
    font-weight: 400;
}

[data-theme="dark"] .warning-box {
    background: rgba(251, 191, 36, 0.15);
    color: var(--text-primary);
}

.tip-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    font-weight: 400;
}

[data-theme="dark"] .tip-box {
    background: rgba(129, 140, 248, 0.15);
    color: var(--text-primary);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: var(--text-primary);
    font-weight: 400;
}

[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.15);
    color: var(--text-primary);
}

/* Gentle link styling */
a {
    color: var(--accent-color);
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--purple-color);
    text-decoration: underline;
}

/* Soft command box styling */
.command-box {
    background: var(--item-bg);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .dashboard {
        padding: 1.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }
    
    .title-section {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .panel {
        padding: 1rem;
    }
    
    .panel h2 {
        font-size: 1.1rem;
    }
    
    .activity-graph-container {
        height: 250px;
        padding: 0.5rem;
    }
    
    .graph-legend {
        gap: 1rem;
        justify-content: center;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .voice-item, .server-item, .activity-item, .system-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .server-info {
        width: 100%;
    }
    
    .activity-content {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .footer-features {
        justify-content: center;
    }
    
    .info-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 0.5rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .header {
        padding: 0.75rem;
    }
    
    .add-bot-btn, .report-issues-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .panel {
        padding: 0.75rem;
    }
    
    .activity-graph-container {
        height: 200px;
        padding: 0.25rem;
    }
    
    .graph-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-content {
        padding: 1rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Loading animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card, .panel {
    animation: fadeIn 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Info links styling */
.info-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--item-bg);
    border: 1px solid var(--border-color);
}

.info-link:hover {
    color: white;
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.footer-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.feature-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}