/* =============================================
   НОВЫЙ МОДУЛЬ: css/global-modern.css
   Папка: zakazi/css/
   Назначение: Единый минималистичный современный стиль для всего проекта
   ============================================= */

:root {
    --primary: #2f80ed;
    --primary-hover: #1e6bd4;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --radius: 20px;
    --shadow: 0 10px 30px -5px rgba(47, 128, 237, 0.12);
}

/* Тёмная тема */
[data-theme="dark"] {
    --bg: #0f172a;
    --card: #1e2937;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    transition: background 0.4s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Левая панель */
.sidebar {
    width: 280px;
    background: var(--card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
    height: 100vh;
    position: fixed;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 28px 28px;
    border-bottom: 1px solid var(--border);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary);
    color: white;
    border-radius: 0 50px 50px 0;
}

/* Верхняя панель */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 640px) {
    .top-bar { padding: 12px 16px; }
    .card { padding: 16px; }
    .table th, .table td { padding: 12px 10px; font-size: 13px; }
}

/* Карточки */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8fafc;
    padding: 18px 24px;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
}

.table td {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
}

/* Модальные окна */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--card);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0);
}