/* style.css - Стили для CRM */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9f7f4;
    color: #1c1c1e;
    line-height: 1.6;
}

/* ===== СТРАНИЦА ВХОДА ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f9f7f4 0%, #f0ebe4 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px 40px;
    border: 1px solid rgba(255, 215, 150, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header .logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #b8863a, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header .sub {
    font-size: 14px;
    color: #8a8a8a;
    margin-top: 4px;
    display: block;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 20px;
}

.login-header p {
    font-size: 14px;
    color: #6a6a6a;
    margin-top: 6px;
}

/* ===== ОБЩИЕ ЭЛЕМЕНТЫ ===== */
.crm-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== САЙДБАР ===== */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 215, 150, 0.08);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-brand .logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #b8863a, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand .logo-sub {
    font-size: 12px;
    font-weight: 500;
    color: #8a8a8a;
    display: block;
    -webkit-text-fill-color: #8a8a8a;
    background: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #5a5a5a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.sidebar-nav a .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-nav a:hover {
    background: rgba(184, 134, 58, 0.04);
    color: #b8863a;
}

.sidebar-nav a.active {
    background: rgba(184, 134, 58, 0.06);
    color: #b8863a;
    font-weight: 600;
}

.sidebar-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 20px;
    margin-top: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    margin-bottom: 12px;
}

.user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b8863a, #d4af37);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info .user-details .name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.user-info .user-details .role {
    font-size: 12px;
    color: #8a8a8a;
    text-transform: capitalize;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #b8863a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    background: rgba(184, 134, 58, 0.04);
}

.logout-btn:hover {
    background: rgba(184, 134, 58, 0.08);
}

.logout-btn .icon {
    font-size: 16px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    flex: 1;
    padding: 28px 32px 32px;
    overflow-y: auto;
}

/* ===== ТОП-БАР ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.top-bar-left h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.top-bar-left .greeting {
    display: block;
    font-size: 14px;
    color: #8a8a8a;
    font-weight: 400;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right .date {
    font-size: 14px;
    color: #6a6a6a;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.btn-notification {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s ease;
}

.btn-notification:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ===== КАРТОЧКИ СТАТИСТИКИ ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 215, 150, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.9);
}

.stat-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(184, 134, 58, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.stat-info .stat-label {
    font-size: 13px;
    color: #6a6a6a;
}

/* ===== ТАБЛИЦЫ ===== */
.dashboard-table {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 215, 150, 0.06);
    margin-bottom: 30px;
}

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

.table-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.table-header .count {
    font-size: 14px;
    color: #8a8a8a;
}

.btn-link {
    color: #b8863a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #a0742e;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead th {
    text-align: left;
    padding: 12px 16px;
    color: #6a6a6a;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    color: #2d2d2d;
}

table tbody tr:hover {
    background: rgba(184, 134, 58, 0.02);
}

/* ===== СТАТУСЫ ===== */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-new {
    background: rgba(33, 150, 243, 0.08);
    color: #1565c0;
}

.status-processing {
    background: rgba(255, 152, 0, 0.08);
    color: #e65100;
}

.status-done {
    background: rgba(76, 175, 80, 0.08);
    color: #2e7d32;
}

.status-delivery {
    background: rgba(156, 39, 176, 0.08);
    color: #6a1b9a;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.08);
    color: #c62828;
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3d3d3d;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    outline: none;
    color: #1a1a1a;
}

.form-group input:focus {
    border-color: #b8863a;
    box-shadow: 0 0 0 4px rgba(184, 134, 58, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.form-group input::placeholder {
    color: #aaa;
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #b8863a, #d4af37);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 134, 58, 0.2);
}

.btn-login:active {
    transform: scale(0.98);
}

/* ===== ФОРМА ДОБАВЛЕНИЯ ===== */
.add-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 215, 150, 0.06);
    margin-bottom: 30px;
}

.add-form h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.form-inline input,
.form-inline select {
    flex: 1 1 180px;
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    outline: none;
}

.form-inline input:focus,
.form-inline select:focus {
    border-color: #b8863a;
    box-shadow: 0 0 0 4px rgba(184, 134, 58, 0.08);
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, #b8863a, #d4af37);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 134, 58, 0.2);
}

/* ===== АЛЕРТЫ ===== */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: rgba(220, 53, 69, 0.06);
    color: #c62828;
    border: 1px solid rgba(220, 53, 69, 0.08);
}

.alert-success {
    background: rgba(40, 167, 69, 0.06);
    color: #1e7e34;
    border: 1px solid rgba(40, 167, 69, 0.08);
}

/* ===== ДЕЙСТВИЯ В ТАБЛИЦАХ ===== */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-select {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.btn-delete {
    color: #c62828;
    text-decoration: none;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-delete:hover {
    background: rgba(220, 53, 69, 0.04);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #8a8a8a;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 20px 12px;
    }
    
    .sidebar-brand .logo,
    .sidebar-brand .logo-sub,
    .sidebar-nav a span:not(.icon),
    .user-info .user-details,
    .logout-btn span:not(.icon) {
        display: none;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 12px;
    }
    
    .sidebar-nav a .icon {
        font-size: 22px;
        width: auto;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .logout-btn {
        justify-content: center;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-info .stat-number {
        font-size: 20px;
    }
    
    .top-bar-left h1 {
        font-size: 22px;
    }
    
    .form-inline {
        flex-direction: column;
    }
    
    .form-inline input,
    .form-inline select {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .login-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
        padding: 16px 8px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        font-size: 24px;
        width: 44px;
        height: 44px;
    }
    
    .stat-info .stat-number {
        font-size: 18px;
    }
    /* Добавить в конец style.css */

/* Форма с сеткой */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Действия в таблице */
.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-view, .btn-calc {
    padding: 4px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.25s ease;
}

.btn-view {
    color: #1565c0;
}

.btn-view:hover {
    background: rgba(33, 150, 243, 0.08);
}

.btn-calc {
    color: #b8863a;
}

.btn-calc:hover {
    background: rgba(184, 134, 58, 0.08);
}

.btn-secondary {
    padding: 10px 24px;
    background: transparent;
    color: #b8863a;
    border: 2px solid #b8863a;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(184, 134, 58, 0.04);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .item-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
}
/* Добавить в style.css */

/* Быстрые действия */
.quick-actions {
    margin-top: 24px;
}

.quick-actions .btn-primary,
.quick-actions .btn-secondary {
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quick-actions .btn-primary {
    background: linear-gradient(135deg, #b8863a, #d4af37);
    color: white;
    border: none;
}

.quick-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 134, 58, 0.2);
}

.quick-actions .btn-secondary {
    background: transparent;
    color: #b8863a;
    border: 2px solid #b8863a;
}

.quick-actions .btn-secondary:hover {
    background: rgba(184, 134, 58, 0.04);
    transform: translateY(-2px);
}

/* Статистика на главной */
.stat-change {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.stat-change.positive {
    color: #2e7d32;
}

.stat-change.negative {
    color: #c62828;
}

/* Адаптация популярных товаров */
@media (max-width: 768px) {
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn-primary,
    .quick-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
/* Добавить в style.css */
.btn-pdf {
    display: inline-block;
    padding: 4px 12px;
    background: #d32f2f;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.btn-pdf:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}
/* Добавить в style.css */

/* Кнопка PDF */
.btn-pdf {
    display: inline-block;
    padding: 6px 16px;
    background: #b8863a;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
}

.btn-pdf:hover {
    background: #a0742e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 58, 0.3);
}

.btn-pdf:active {
    transform: scale(0.96);
}

/* Действия в таблице */
.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* Адаптив для кнопок */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons .btn-pdf,
    .action-buttons .status-select {
        width: 100%;
        text-align: center;
    }
}
/* Дополнительные стили для calculator.php */

/* Строка скидки в таблице */
.discount-row td {
    color: #c62828;
}

/* Финальная строка в таблице */
.final-row td {
    border-top: 2px solid #b8863a;
    font-size: 14px;
}

.final-row td:last-child {
    font-size: 18px;
    color: #b8863a;
}

/* Отключённая кнопка */
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Адаптив для формы расчёта */
@media (max-width: 768px) {
    .item-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        margin-bottom: 16px !important;
    }
    
    .item-row .form-group {
        margin-bottom: 0 !important;
    }
    
    .item-row div:last-child {
        padding-top: 0 !important;
        text-align: right;
    }
    
    .item-row div:last-child button {
        font-size: 20px !important;
    }
    
    .add-form .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для выпадающего списка статусов */
.status-select {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.25s ease;
}

.status-select:hover {
    border-color: #b8863a;
}

.status-select:focus {
    outline: none;
    border-color: #b8863a;
    box-shadow: 0 0 0 3px rgba(184, 134, 58, 0.1);
}

/* Адаптив для action-buttons */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .action-buttons .btn-pdf,
    .action-buttons .status-select,
    .action-buttons .btn-delete {
        width: 100%;
        text-align: center;
    }
}
/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal form .form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal form .form-group textarea:focus {
    border-color: #b8863a;
    box-shadow: 0 0 0 4px rgba(184, 134, 58, 0.08);
    outline: none;
}

/* Адаптив для модалки */
@media (max-width: 768px) {
    .modal > div {
        padding: 20px !important;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal form .form-group {
        grid-column: 1 / -1 !important;
    }
    
    .modal form .form-group.half {
        grid-column: 1 / -1 !important;
    }
}

/* Кнопка редактирования */
.btn-edit {
    color: #1565c0;
    text-decoration: none;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-edit:hover {
    background: rgba(33, 150, 243, 0.08);
}
/* Стили для каталогов */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.catalog-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.catalog-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
}

.catalog-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.catalog-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.sub-catalog-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.sub-catalog-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.sub-catalog-list li a {
    color: #b8863a;
    text-decoration: none;
    font-size: 14px;
}

.sub-catalog-list li a:hover {
    text-decoration: underline;
}
/* Добавить в style.css */

/* ===== КНОПКА УДАЛЕНИЯ (опасная) ===== */
.btn-danger {
    background: #c62828;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-danger:active {
    transform: scale(0.96);
}

/* ===== ЧЕКБОКСЫ В ТАБЛИЦЕ ===== */
.table-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #b8863a;
}

/* ===== ВЫДЕЛЕНИЕ ВЫБРАННЫХ СТРОК ===== */
.table-wrapper tbody tr.selected {
    background: rgba(184, 134, 58, 0.04);
}

/* ===== АНИМАЦИЯ УДАЛЕНИЯ ===== */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

tr.deleting {
    animation: fadeOut 0.5s ease forwards;
}
}