/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ MATCHES */

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.3);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0.5rem 0;
}

/* Улучшенные модальные окна */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

/* Красивые чекбоксы */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    transform: scale(1.2);
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Улучшенная таблица */
.data-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.data-table tbody tr:hover {
    background: #f0f4ff;
    transform: scale(1.01);
    transition: all 0.2s;
}

.data-table td {
    vertical-align: middle;
}

.data-table td strong {
    color: var(--primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════
   СТИЛИ ДЛЯ УПРОЩЕННЫХ ФОРМ
   ═══════════════════════════════════════════════ */

.help-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #2196f3;
}

.help-box h4 {
    margin-bottom: 1rem;
    color: #1976d2;
}

.help-box ol {
    margin-left: 1.5rem;
}

.help-box code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    color: #d32f2f;
}

.required {
    color: #d32f2f;
    font-weight: bold;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.code-example {
    background: #263238;
    color: #aed581;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rule-badge {
    background: #e3f2fd;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #1976d2;
    font-weight: 500;
}

.inactive-row {
    opacity: 0.5;
}

.stats-footer {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-footer p {
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #6c757d;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .help-box {
        padding: 1rem;
    }
    
    .stats-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}