/* ========================================
   VK PARSER - Neumorphic Glass Theme
   ======================================== */

/* === Импорт шрифтов === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS Переменные === */
:root {
    /* Light Theme */
    --bg-primary: #e8ecf1;
    --bg-secondary: #e0e5ec;
    --bg-glass: rgba(255, 255, 255, 0.25);
    --bg-glass-strong: rgba(255, 255, 255, 0.45);
    --bg-card: rgba(255, 255, 255, 0.35);
    
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #94a3b8;
    
    --shadow-light: -6px -6px 16px rgba(255, 255, 255, 0.8);
    --shadow-dark: 6px 6px 16px rgba(163, 177, 198, 0.6);
    --shadow-inner: inset 3px 3px 7px rgba(163, 177, 198, 0.4), inset -3px -3px 7px rgba(255, 255, 255, 0.7);
    
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #74b9ff;
    
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Dark Theme === */
[data-theme="dark"] {
    --bg-primary: #1a1d23;
    --bg-secondary: #22262e;
    --bg-glass: rgba(30, 34, 42, 0.6);
    --bg-glass-strong: rgba(40, 44, 52, 0.7);
    --bg-card: rgba(30, 34, 42, 0.5);
    
    --text-primary: #e1e8f0;
    --text-secondary: #b0bec5;
    --text-muted: #64748b;
    
    --shadow-light: -6px -6px 16px rgba(255, 255, 255, 0.03);
    --shadow-dark: 6px 6px 16px rgba(0, 0, 0, 0.4);
    --shadow-inner: inset 3px 3px 7px rgba(0, 0, 0, 0.3), inset -3px -3px 7px rgba(255, 255, 255, 0.02);
}

/* === Базовые стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: var(--transition);
}

/* === Сайдбар === */
.sidebar {
    position: fixed;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 260px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 16px;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-logo {
	padding: 16px 12px;
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 32px;
	letter-spacing: -0.5px;
	display: flex;
	flex-direction: row;
	align-items: center;
}

.sidebar-img {
	position: relative;
	z-index: 2;
	display: block;
	background-image: url(/favicon.png);
	width: 50px;
	height: 50px;
	background-repeat: no-repeat;
	background-size: cover;
}

.sidebar-text {
	position: relative;
	z-index: 1;
	display: block;
	background: linear-gradient(120deg, #a098fd, #6f5fe8);
	color: white;
	padding: 2px 12px 2px 4px;
	margin-left: -2px;
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.sidebar-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-strong);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transform: translateX(4px);
}

.sidebar-menu a.active {
    color: var(--accent);
    background: var(--bg-glass-strong);
    box-shadow: var(--shadow-inner);
    font-weight: 600;
}

.sidebar-menu .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* === Основной контент === */
.main-content {
    margin-left: 300px;
    margin-right: 20px;
    padding: 20px 0;
}

/* === Хедер === */
.header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.header h1 {
    font-size: 25px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* === Карточки статистики === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        -8px -8px 20px rgba(255, 255, 255, 0.9),
        8px 8px 20px rgba(163, 177, 198, 0.7);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Таблицы === */
.table-container {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-glass-strong);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 14px;
}

tr {
    transition: var(--transition);
}

tr:hover {
    background: var(--bg-glass-strong);
}

/* === Кнопки === */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

.btn:hover {
    box-shadow: var(--shadow-inner);
    transform: scale(0.97);
}

.btn:active {
    box-shadow: var(--shadow-inner);
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 4px 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: #333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === Статусы === */
.status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-pending {
    background: var(--warning);
    color: #333;
    box-shadow: 2px 2px 8px rgba(253, 203, 110, 0.3);
}

.status-ready {
    background: var(--info);
    color: white;
    box-shadow: 2px 2px 8px rgba(116, 185, 255, 0.3);
}

.status-published {
    background: var(--success);
    color: white;
    box-shadow: 2px 2px 8px rgba(0, 184, 148, 0.3);
}

.status-failed {
    background: var(--danger);
    color: white;
    box-shadow: 2px 2px 8px rgba(225, 112, 85, 0.3);
}

.status-approved {
    background: var(--accent);
    color: white;
}

/* === Формы === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-inner);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 
        var(--shadow-inner),
        0 0 0 2px var(--accent-light);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* === Алерты === */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.alert-error {
    background: rgba(225, 112, 85, 0.15);
    color: var(--danger);
    border: 1px solid rgba(225, 112, 85, 0.3);
}

.alert-info {
    background: rgba(116, 185, 255, 0.15);
    color: var(--info);
    border: 1px solid rgba(116, 185, 255, 0.3);
}

/* === Модальное окно === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--border-radius-lg);
    box-shadow: 
        -10px -10px 30px rgba(255, 255, 255, 0.8),
        10px 10px 30px rgba(163, 177, 198, 0.6);
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

/* === Логин === */
.login-container {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--border-radius-lg);
    box-shadow: 
        -10px -10px 30px rgba(255, 255, 255, 0.8),
        10px 10px 30px rgba(163, 177, 198, 0.6);
    padding: 48px;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Свитчер темы === */
.theme-switch {
    width: 48px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-inner);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.theme-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    transition: var(--transition);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-switch.dark::after {
    left: 26px;
    background: var(--warning);
}

/* === Скроллбар === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

/* === Анимации === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card,
.table-container,
.header {
    animation: fadeIn 0.5s ease-out;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 16px 8px;
    }
    
    .sidebar-logo {
        font-size: 0;
    }
    
    .sidebar-menu a span:not(.icon) {
        display: none;
    }
    
    .main-content {
        margin-left: 100px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.theme-toggle {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.theme-toggle.not {
	position: relative;
	top: unset;
	right: unset;
}
.theme-switch {
	width: 52px;
	height: 28px;
	background: var(--bg-secondary);
	border-radius: 14px;
	box-shadow: var(--shadow-inner);
	cursor: pointer;
	position: relative;
	transition: var(--transition);
}

.theme-switch::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--accent);
	transition: var(--transition);
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-switch::after {
	left: 27px;
	background: var(--warning);
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */

@media (max-width: 1200px) {
    .main-content {
        margin-left: 280px;
        margin-right: 10px;
        padding: 10px 0;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 220px;
        left: 10px;
        top: 10px;
        bottom: 10px;
        padding: 16px 10px;
        border-radius: var(--border-radius);
    }
    
    .sidebar-logo {
        font-size: 18px;
        padding: 10px 8px;
    }
    
    .sidebar-menu a {
        padding: 10px 12px;
        font-size: 13px;
        gap: 8px;
    }
    
    .sidebar-menu .icon {
        font-size: 16px;
    }
    
    .main-content {
        margin-left: 240px;
        margin-right: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .table-container {
        padding: 16px;
        overflow-x: auto;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 2000;
        transition: left 0.3s ease;
        border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 10px;
    }
    
    .header {
        padding: 12px 16px;
        border-radius: var(--border-radius);
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 18px;
        width: 100%;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-glass-strong);
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-light), var(--shadow-dark);
        border: none;
        cursor: pointer;
        font-size: 24px;
        color: var(--text-primary);
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .table-container {
        padding: 12px;
        border-radius: var(--border-radius);
    }
    
    .table-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .table-header h2 {
        font-size: 16px;
    }
    
    .search-box form {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-sm {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .status {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
        width: 95%;
        max-height: 90vh;
        border-radius: var(--border-radius);
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .logo {
        font-size: 40px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .table-header h2 {
        font-size: 14px;
    }
    
    th, td {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    .modal-content {
        padding: 16px;
    }
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}
/* ========================================
   MOBILE MENU - FULL OVERLAY
   ======================================== */
.mobile-menu-btn { display: none; }

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px;
        background: var(--bg-glass-strong); backdrop-filter: blur(20px);
        border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
        box-shadow: var(--shadow-light), var(--shadow-dark);
        cursor: pointer; font-size: 22px; color: var(--text-primary);
        position: fixed; top: 12px; left: 12px; z-index: 1998;
    }

    .sidebar {
        position: fixed; left: -100%; top: 0; bottom: 0; width: 280px;
        z-index: 2000; transition: left 0.3s ease;
        border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
        padding: 24px 16px;
    }
    .sidebar.active { left: 0; }

    .sidebar-overlay {
        display: none; position: fixed; top: 0; left: 0;
        width: 100%; height: 100%; background: rgba(0,0,0,0.5);
        z-index: 1999;
    }
    .sidebar-overlay.active { display: block; }

    .main-content { margin-left: 0; margin-right: 0; padding: 60px 10px 10px; }
}

/* ========================================
   DASHBOARD - CARD COLUMNS ON MOBILE
   ======================================== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 16px 12px; text-align: center; }
    .stat-icon { font-size: 24px; margin-bottom: 6px; }
    .stat-number { font-size: 26px; }
    .stat-label { font-size: 10px; }
}
@media (max-width: 400px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px 8px; }
    .stat-number { font-size: 22px; }
}

.status-pending     { background: #fdcb6e; color: #333; }   /* ⏳ Жёлтый */
.status-parsed      { background: #ffeaa7; color: #333; }   /* 📥 Светло-жёлтый */
.status-downloading { background: #74b9ff; color: white; }  /* ⬇️ Голубой */
.status-downloaded  { background: #a29bfe; color: white; }  /* ✅ Фиолетовый */
.status-ready       { background: #00b894; color: white; }  /* 🎯 Зелёный */
.status-approved    { background: #6c5ce7; color: white; }  /* 👍 Тёмно-фиолетовый */
.status-scheduled   { background: #e17055; color: white; }  /* 🕐 Оранжевый */
.status-publishing  { background: #0984e3; color: white; }  /* 📤 Синий */
.status-published   { background: #00b894; color: white; }  /* ✅ Зелёный */
.status-failed      { background: #d63031; color: white; }  /* ❌ Красный */
.status-rejected    { background: #636e72; color: white; }  /* 🚫 Серый */
.status-error       { background: #d63031; color: white; }  /* ⚠️ Красный */
.status-partial     { background: #e17055; color: white; }  /* ⚠️ Оранжевый */
.status-completed   { background: #00b894; color: white; }  /* ✅ Зелёный */

/* === КРАСИВЫЙ ЧЕКБОКС === */
.custom-checkbox {
    display: flex !important;
	flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkbox-box {
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 6px;
    box-shadow: var(--shadow-inner);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-checkbox input:checked + .checkbox-box {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.custom-checkbox .checkbox-box::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: var(--transition);
    margin-top: -2px;
}

.custom-checkbox input:checked + .checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.custom-checkbox .checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
}