:root {
    --bg-dark: #0f172a;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --accent-emerald: #10b981;
    --accent-ruby: #ef4444;
    --accent-amber: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --sidebar-w: 260px;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-w);
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

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

.logo .icon {
    width: 38px;
    height: 38px;
    background: var(--accent-emerald);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-dark);
}

.logo .text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 8px;
}

.sidebar nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidebar nav li.active a, .sidebar nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
}

/* Main Content Styling */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.header-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card.live .stat-icon { color: var(--accent-emerald); background: rgba(16, 185, 129, 0.1); }
.stat-card.dead .stat-icon { color: var(--accent-ruby); background: rgba(239, 68, 68, 0.1); }
.stat-card.pending .stat-icon { color: var(--accent-amber); background: rgba(245, 158, 11, 0.1); }

/* Table Section */
.content-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.data-table th {
    text-align: left;
    padding: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 16px 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-live { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.badge-dead { background: rgba(239, 68, 68, 0.15); color: var(--accent-ruby); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-processing { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: filter 0.2s;
}

.btn-primary {
    background: var(--accent-emerald);
    color: var(--bg-dark);
}

.btn:hover {
    filter: brightness(1.1);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-dark);
    margin: 10% auto;
    padding: 32px;
    border: 1px solid var(--glass-border);
    width: 500px;
    border-radius: 20px;
}

.modal-content textarea {
    width: 100%;
    height: 200px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-family: inherit;
    resize: none;
}
