:root {
    --bg-color: #0b0f19;
    --sidebar-bg: #111827;
    --card-bg: #1f2937;
    --primary: #00eaff;
    --secondary: #ff00ff;
    --accent: #ffcc00;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #374151;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar.collapsed { width: 70px; }
.sidebar.collapsed .logo-text { display: none; }
.sidebar.collapsed .nav-text { display: none; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 15px 0; }
.sidebar.collapsed .nav-icon { margin-right: 0; font-size: 24px; }
.sidebar.collapsed .bot-status { display: none; }

.logo {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo h1 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.logo span {
    color: var(--primary);
}

.logo p {
    color: var(--accent);
    font-size: 12px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-icon {
    font-size: 20px;
    margin-right: 15px;
}

.nav-link:hover {
    background-color: rgba(0, 234, 255, 0.05);
    color: #fff;
}

.nav-link.active {
    background-color: rgba(0, 234, 255, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.bot-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.bot-status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.bot-status.offline { color: var(--danger); }
.bot-status.offline .dot { background-color: var(--danger); box-shadow: 0 0 8px var(--danger); }

.bot-status.online { color: var(--success); }
.bot-status.online .dot { background-color: var(--success); box-shadow: 0 0 8px var(--success); }

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content { margin-left: 70px; }

/* Top Bar Controls */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Cards & Containers */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { box-shadow: 0 0 15px rgba(0,234,255,0.4); }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { box-shadow: 0 0 15px rgba(255,0,255,0.4); }

.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { box-shadow: 0 0 15px rgba(255,204,0,0.4); }

/* Inputs */
input[type="text"], input[type="number"], input[type="date"], select {
    background: #111827;
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    outline: none;
    transition: border 0.3s;
}
input:focus, select:focus {
    border-color: var(--primary);
}

/* Tables */
.pro-table {
    width: 100%;
    border-collapse: collapse;
}

.pro-table th {
    background: #111827;
    color: var(--text-muted);
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border);
}

.pro-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.pro-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--card-bg);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.3s forwards;
}

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