@import url('/css/admin-events-premium.css');

:root {
    --primary: #2563eb;
    --primary-dark: #4338ca;
    --secondary: #9333ea;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f8fafc;
}

.search-input,
select.search-input,
textarea.search-input {
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    outline: none;
}

.search-input:focus,
select.search-input:focus,
textarea.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px #eef2ff;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    font-weight: 900;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-chip:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.12);
}

.status-pill,
.priority-pill,
.role-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: #eef2ff;
    color: var(--primary-dark);
}

.status-open { background: #eff6ff; color: #1d4ed8; }
.status-progress { background: #fffbeb; color: #b45309; }
.status-resolved { background: #ecfdf5; color: #047857; }
.status-archived { background: #f3f4f6; color: #374151; }

.priority-low { background: #f3f4f6; color: #374151; }
.priority-normal { background: #eef2ff; color: #4338ca; }
.priority-high { background: #fff7ed; color: #c2410c; }
.priority-urgent { background: #fef2f2; color: #b91c1c; }

.table-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th,
.table-modern td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.table-modern th {
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.form-card {
    display: grid;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.form-card label {
    display: grid;
    gap: 8px;
    font-weight: 900;
    color: #374151;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-grid .wide {
    grid-column: 1 / -1;
}

.message-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.message-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.message-body {
    color: #4b5563;
    line-height: 1.65;
}

.ticket-qr {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: repeating-linear-gradient(45deg, #111827, #111827 5px, #ffffff 5px, #ffffff 10px);
    color: white;
    font-weight: 1000;
    box-shadow: inset 0 0 0 8px white, 0 16px 35px rgba(15, 23, 42, 0.12);
}

.ticket-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

@media (max-width: 760px) {
    .field-grid,
    .ticket-card {
        grid-template-columns: 1fr;
    }

    .table-card {
        overflow-x: auto;
    }
}
