/* ═══════════════════════════════════════════════════════════════════
   Auto-Bump Dashboard Styles
   Dark theme with glassmorphism, inspired by Discord's aesthetic
   ═══════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-elevated: #1c2333;
    --bg-hover: #292e36;
    --bg-card: rgba(22, 27, 34, 0.7);

    /* Borders */
    --border-default: rgba(48, 54, 61, 0.6);
    --border-subtle: rgba(48, 54, 61, 0.3);
    --border-glow: rgba(124, 92, 252, 0.25);

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    --text-inverse: #0d1117;

    /* Accents */
    --accent-purple: #7c5cfc;
    --accent-purple-hover: #9176ff;
    --accent-purple-glow: rgba(124, 92, 252, 0.15);
    --accent-blue: #58a6ff;
    --accent-green: #56d364;
    --accent-green-dim: rgba(86, 211, 100, 0.15);
    --accent-red: #f85149;
    --accent-red-dim: rgba(248, 81, 73, 0.15);
    --accent-yellow: #e3b341;
    --accent-yellow-dim: rgba(227, 179, 65, 0.15);
    --accent-orange: #f0883e;
    --accent-cyan: #39d2c0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c5cfc 0%, #58a6ff 100%);
    --gradient-success: linear-gradient(135deg, #56d364 0%, #39d2c0 100%);
    --gradient-danger: linear-gradient(135deg, #f85149 0%, #f0883e 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(124, 92, 252, 0.1);

    /* Layout */
    --header-height: 64px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ── Reset & Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Ambient background gradients */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}


/* ── Header ────────────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 28px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border-default);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-purple-glow);
    border: 1px solid rgba(124, 92, 252, 0.2);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Scheduler control */
.scheduler-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scheduler-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    font-size: 0.82rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: background var(--transition-normal);
}

.scheduler-status.active .status-dot {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(86, 211, 100, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

.scheduler-status.inactive .status-dot {
    background: var(--accent-red);
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.btn-scheduler {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-scheduler:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

.btn-scheduler.running svg {
    fill: var(--accent-green);
    stroke: var(--accent-green);
}

/* Uptime badge */
.uptime-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}


/* ── Stats Bar ─────────────────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 20px 28px;
    position: relative;
    z-index: 1;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    animation: fadeInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0ms;
}

.stat-card:nth-child(2) {
    animation-delay: 50ms;
}

.stat-card:nth-child(3) {
    animation-delay: 100ms;
}

.stat-card:nth-child(4) {
    animation-delay: 150ms;
}

.stat-card:nth-child(5) {
    animation-delay: 200ms;
}

.stat-card:nth-child(6) {
    animation-delay: 250ms;
}

.stat-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-icon-accounts {
    background: rgba(124, 92, 252, 0.12);
    color: var(--accent-purple);
}

.stat-icon-active {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.stat-icon-channels {
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent-blue);
}

.stat-icon-success {
    background: rgba(57, 210, 192, 0.12);
    color: var(--accent-cyan);
}

.stat-icon-bumps {
    background: rgba(227, 179, 65, 0.12);
    color: var(--accent-yellow);
}

.stat-icon-next {
    background: rgba(240, 136, 62, 0.12);
    color: var(--accent-orange);
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.stat-sublabel {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ── Main Content ──────────────────────────────────────────────────── */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
    padding: 0 28px 28px;
    position: relative;
    z-index: 1;
}

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

.panel-channels {
    grid-column: 1;
}

.panel-logs {
    grid-column: 2;
}


/* ── Panels ────────────────────────────────────────────────────────── */
.panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeInUp 0.5s ease backwards;
    animation-delay: 300ms;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.panel-title h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.panel-title svg {
    color: var(--text-secondary);
}

.panel-body {
    padding: 4px;
}

.log-body {
    padding: 0;
}

.log-count {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
}


/* ── Tables ────────────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:not(.empty-row):hover {
    background: rgba(88, 166, 255, 0.03);
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    gap: 8px;
}

.empty-state p {
    color: var(--text-tertiary);
    font-size: 0.88rem;
}

.empty-state .empty-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    opacity: 0.6;
}


/* ── Status Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-online {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.badge-offline {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

.badge-disabled {
    background: rgba(110, 118, 129, 0.15);
    color: var(--text-tertiary);
}

.badge-cooldown {
    background: var(--accent-yellow-dim);
    color: var(--accent-yellow);
}

.badge-error {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}


/* ── Token Display ─────────────────────────────────────────────────── */
.token-display {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}


/* ── Channel Tags ──────────────────────────────────────────────────── */
.channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.channel-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 500;
}


/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 92, 252, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(124, 92, 252, 0.4);
    transform: translateY(-1px);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid transparent;
    padding: 6px 10px;
}

.btn-danger:hover {
    background: var(--accent-red-dim);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.toggle input {
    display: none;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    transition: all var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all var(--transition-normal);
}

.toggle input:checked+.toggle-slider {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(18px);
    background: #fff;
}


/* ── Actions Cell ──────────────────────────────────────────────────── */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ── Log Feed ──────────────────────────────────────────────────────── */
.log-feed {
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.log-feed::-webkit-scrollbar {
    width: 6px;
}

.log-feed::-webkit-scrollbar-track {
    background: transparent;
}

.log-feed::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 100px;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
    animation: fadeIn 0.3s ease;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry:hover {
    background: rgba(88, 166, 255, 0.02);
}

.log-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.85rem;
}

.log-icon.success {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.log-icon.failure {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

.log-content {
    flex: 1;
    min-width: 0;
}

.log-message {
    font-size: 0.84rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.log-message .log-channel {
    color: var(--accent-blue);
    font-weight: 600;
}

.log-message .log-account {
    color: var(--accent-purple);
    font-weight: 600;
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.log-reason {
    font-size: 0.78rem;
    color: var(--accent-red);
    margin-top: 3px;
    opacity: 0.8;
}

.log-reason.pending {
    color: var(--accent-yellow);
}


/* ── Countdown ─────────────────────────────────────────────────────── */
.countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.88rem;
}

.countdown.soon {
    color: var(--accent-green);
}

.countdown.waiting {
    color: var(--accent-yellow);
}

.countdown.far {
    color: var(--text-secondary);
}

.countdown.pending {
    color: var(--accent-orange);
}

.countdown.bumping {
    color: var(--accent-blue);
}

.countdown.ready {
    color: var(--accent-green);
    animation: pulse-text 1.5s ease-in-out infinite;
}

.log-icon.pending {
    background: var(--accent-yellow-dim);
    color: var(--accent-yellow);
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* ── Modal ─────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.visible .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Form */
.form-group {
    padding: 0 24px;
    margin-top: 18px;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.required {
    color: var(--accent-red);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.88rem;
    transition: border-color var(--transition-fast);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.token-input-wrapper {
    position: relative;
}

.token-input-wrapper input {
    padding-right: 44px;
}

.btn-toggle-vis {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.btn-toggle-vis:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
}


/* ── Toast Notifications ───────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.84rem;
    color: var(--text-primary);
    animation: toastIn 0.35s ease;
    min-width: 280px;
    max-width: 420px;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.success {
    border-left: 3px solid var(--accent-green);
}

.toast.error {
    border-left: 3px solid var(--accent-red);
}

.toast.info {
    border-left: 3px solid var(--accent-blue);
}


/* ── Animations ────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
    }

    .panel-accounts,
    .panel-channels,
    .panel-logs {
        grid-column: 1;
    }

    .header {
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .header-right {
        gap: 8px;
    }

    .uptime-badge {
        display: none;
    }
}