/* Работник — основные стили */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1a1d21;
    --sidebar-hover: #2c3036;
    --accent: #0d6efd;
    --accent-hover: #0b5ed7;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.7rem 1.2rem;
    border-radius: 0.5rem;
    margin: 2px 0.5rem;
    transition: all 0.2s;
    font-size: 0.92rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--accent);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}

.sidebar-brand {
    padding: 1.2rem 1.2rem 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: #f0f2f5;
}

.top-navbar {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.6rem 1.5rem;
}

.content-area {
    padding: 1.5rem;
}

/* ========== STAT CARDS ========== */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: #6c757d;
}

/* ========== TABLE ========== */
.table-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ========== STATUS BADGES ========== */
.badge-active { background: #198754; }
.badge-paused { background: #ffc107; color: #000; }
.badge-completed { background: #6c757d; }
.badge-error { background: #dc3545; }
.badge-sent { background: #0dcaf0; color: #000; }
.badge-delivered { background: #17a2b8; color: #fff; }
.badge-viewed { background: #0d6efd; }
.badge-invited { background: #198754; }
.badge-rejected { background: #dc3545; }

/* ========== LOGIN PAGE ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d21 0%, #2c3036 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}
