/**
 * Pompeji Tickets – Frontend CSS
 * Passt sich an das bestehende Theme an
 */

/* === Reset & Basis === */
.pompeji-ticket-create,
.pompeji-my-tickets,
.pompeji-ticket-overview,
.pompeji-ticket-detail,
.pompeji-ticket-counter {
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
}

.pompeji-ticket-create *,
.pompeji-my-tickets *,
.pompeji-ticket-overview *,
.pompeji-ticket-detail *,
.pompeji-ticket-counter * {
    box-sizing: border-box;
}

/* === Stepper === */
.pompeji-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 0;
    flex-wrap: wrap;
}

.pompeji-stepper .step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: default;
}

.pompeji-stepper .step.active {
    opacity: 1;
    font-weight: 600;
}

.pompeji-stepper .step.completed {
    opacity: 0.8;
}

.pompeji-stepper .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pompeji-stepper .step.completed .step-number::after {
    content: '✓';
    font-size: 16px;
}

.pompeji-stepper .step.completed .step-number {
    font-size: 0;
}

.pompeji-stepper .step-title {
    font-size: 14px;
}

.pompeji-stepper .step-line {
    flex: 0 0 40px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 0 4px;
}

/* === Formular === */
.pompeji-ticket-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.pompeji-ticket-form input[type="text"],
.pompeji-ticket-form input[type="email"],
.pompeji-ticket-form input[type="number"],
.pompeji-ticket-form input[type="url"],
.pompeji-ticket-form input[type="date"],
.pompeji-ticket-form textarea,
.pompeji-ticket-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pompeji-ticket-form input:focus,
.pompeji-ticket-form textarea:focus,
.pompeji-ticket-form select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.pompeji-ticket-form textarea {
    resize: vertical;
    min-height: 100px;
}

.step-description {
    margin-bottom: 20px;
    opacity: 0.7;
    font-size: 14px;
}

/* === Kategorie-Karten === */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 8px;
}

.category-card:hover {
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.category-card.selected {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.category-card i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.category-card span {
    font-weight: 600;
    font-size: 15px;
}

.category-card small {
    font-size: 12px;
    opacity: 0.6;
}

/* === Radio & Checkbox === */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.radio-label:hover,
.checkbox-label:hover {
    background: rgba(255,255,255,0.05);
}

/* === Datei-Upload === */
.file-upload-area {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.file-upload-area i {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.file-upload-area p {
    margin: 4px 0;
    font-size: 14px;
}

.file-upload-area small {
    opacity: 0.5;
}

.file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-preview {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 12px;
}

.file-preview .remove-file {
    cursor: pointer;
    color: #e74c3c;
    font-weight: bold;
}

/* === Buttons === */
.pompeji-btn-primary,
.pompeji-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1.5;
}

.pompeji-btn-primary {
    background: #e74c3c;
    color: #fff;
}

.pompeji-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.pompeji-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: inherit;
}

.pompeji-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.pompeji-btn-small {
    padding: 6px 14px;
    font-size: 12px;
}

.pompeji-btn-primary:disabled,
.pompeji-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 12px;
}

/* === Review / Überprüfung === */
.pompeji-review {
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}

.pompeji-review .review-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.pompeji-review .review-item:last-child {
    border-bottom: none;
}

.pompeji-review .review-label {
    font-weight: 600;
    opacity: 0.7;
}

/* === Erfolgs-Anzeige === */
.pompeji-success {
    text-align: center;
    padding: 40px;
}

.pompeji-success i {
    font-size: 64px;
    color: #27ae60;
    margin-bottom: 16px;
    display: block;
}

.pompeji-success p {
    font-size: 16px;
    margin-bottom: 12px;
}

.pompeji-success .ticket-number {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

/* === Status Badges === */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}

.status-badge.status-open { background: rgba(46,204,113,0.15); color: #2ecc71; }
.status-badge.status-in_progress { background: rgba(243,156,18,0.15); color: #f39c12; }
.status-badge.status-approved { background: rgba(39,174,96,0.15); color: #27ae60; }
.status-badge.status-rejected { background: rgba(231,76,60,0.15); color: #e74c3c; }
.status-badge.status-closed { background: rgba(149,165,166,0.15); color: #95a5a6; }

/* === Priority Badges === */
.priority-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.priority-badge.priority-low { background: rgba(52,152,219,0.15); color: #3498db; }
.priority-badge.priority-medium { background: rgba(243,156,18,0.15); color: #f39c12; }
.priority-badge.priority-high { background: rgba(231,76,60,0.15); color: #e74c3c; }
.priority-badge.priority-urgent { background: rgba(192,57,43,0.3); color: #ff4444; animation: pulse-urgent 2s infinite; }

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* === Category Badges === */
.category-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.category-badge.cat-whitelist_rp { background: rgba(155,89,182,0.15); color: #9b59b6; }
.category-badge.cat-technical { background: rgba(52,152,219,0.15); color: #3498db; }
.category-badge.cat-ingame { background: rgba(46,204,113,0.15); color: #2ecc71; }

/* === Meine Tickets ===  */
.my-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.my-tickets-header h3 {
    margin: 0;
    font-size: 20px;
}

.my-tickets-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pompeji-filter {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 13px;
    font-family: inherit;
}

.pompeji-filter:focus {
    outline: none;
    border-color: #e74c3c;
}

/* === Ticket-Row (für Meine Tickets) === */
.pompeji-ticket-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.pompeji-ticket-row:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.pompeji-ticket-row .ticket-row-number {
    font-weight: 700;
    font-size: 13px;
    opacity: 0.7;
    min-width: 110px;
}

.pompeji-ticket-row .ticket-row-subject {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pompeji-ticket-row .ticket-row-date {
    font-size: 12px;
    opacity: 0.5;
    min-width: 90px;
    text-align: right;
}

/* === Ticket-Übersicht (Staff) === */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.overview-stat {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    text-align: center;
}

.overview-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.overview-stat .stat-label {
    font-size: 12px;
    opacity: 0.6;
}

.overview-toolbar {
    margin-bottom: 16px;
}

.overview-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn.active,
.tab-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.overview-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* === Tabelle === */
.overview-table-wrapper {
    overflow-x: auto;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.overview-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.overview-table th[data-sortable] {
    cursor: pointer;
}

.overview-table th[data-sortable]:hover {
    opacity: 1;
}

.overview-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.overview-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.overview-table .clickable-row {
    cursor: pointer;
}

/* Farbliche Hervorhebung: Eskalierte Tickets */
.overview-table .escalated-admin td {
    border-left: 3px solid #e67e22;
    background: rgba(230, 126, 34, 0.08);
}
.overview-table .escalated-admin:hover td {
    background: rgba(230, 126, 34, 0.15);
}

.overview-table .escalated-pl td {
    border-left: 3px solid #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}
.overview-table .escalated-pl:hover td {
    background: rgba(231, 76, 60, 0.15);
}

.overview-table .escalated-dev td {
    border-left: 3px solid #9b59b6;
    background: rgba(155, 89, 182, 0.08);
}
.overview-table .escalated-dev:hover td {
    background: rgba(155, 89, 182, 0.15);
}

/* Eskalations-Badge in der Tabelle */
.escalation-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    margin-left: 6px;
    vertical-align: middle;
}

/* === Eskalations-Modal === */
.pompeji-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pompeji-modal {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.pompeji-modal h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #fff;
}

.pompeji-modal p {
    margin: 0 0 20px;
    opacity: 0.7;
    font-size: 14px;
}

.pompeji-modal .escalate-options {
    display: flex;
    gap: 10px;
}

.pompeji-modal .escalate-options .pompeji-btn-primary,
.pompeji-modal .escalate-options .pompeji-btn-secondary {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
}

/* === Pagination === */
.my-tickets-pagination,
.overview-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.page-btn.active,
.page-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* === Ticket Detail === */
.pompeji-ticket-detail {
    position: relative;
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    flex-wrap: wrap;
    gap: 16px;
}

.ticket-detail-header .header-left {
    flex: 1;
}

.ticket-detail-header .ticket-number {
    font-size: 13px;
    opacity: 0.6;
    font-weight: 600;
}

.ticket-detail-header .ticket-subject {
    margin: 4px 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.ticket-meta-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

@media (max-width: 768px) {
    .ticket-detail-content {
        grid-template-columns: 1fr;
    }
}

/* === Chat === */
.ticket-main {
    min-width: 0;
}

.ticket-form-data {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 16px;
}

.ticket-form-data .meta-item {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticket-form-data .meta-item:last-child {
    border-bottom: none;
}

.ticket-form-data .meta-label {
    font-weight: 600;
    min-width: 140px;
    opacity: 0.7;
}

.ticket-chat {
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    margin-bottom: 16px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.chat-message.is-user {
    background: rgba(255,255,255,0.05);
    margin-right: 40px;
}

.chat-message.is-staff {
    background: rgba(231,76,60,0.08);
    margin-left: 40px;
}

.chat-message.is-internal {
    background: rgba(243,156,18,0.1);
    border-left: 3px solid #f39c12;
    margin-left: 40px;
}

.chat-message.is-internal::before {
    content: '🔒 Interne Notiz';
    font-size: 10px;
    font-weight: 600;
    color: #f39c12;
    display: block;
    margin-bottom: 4px;
}

.chat-message .msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.chat-message .msg-author {
    font-weight: 600;
    font-size: 14px;
}

.chat-message .msg-author.is-staff-author {
    color: #e74c3c;
}

.chat-message .msg-time {
    font-size: 11px;
    opacity: 0.5;
}

.chat-message .msg-body {
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.chat-message .msg-body p {
    margin: 0 0 8px;
}

.chat-message .msg-body p:last-child {
    margin-bottom: 0;
}

.chat-message .msg-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.msg-attachment {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.msg-attachment:hover {
    background: rgba(255,255,255,0.1);
}

.msg-attachment img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 4px;
}

/* === Antwort-Bereich === */
.ticket-reply {
    border-radius: 8px;
    overflow: hidden;
}

.reply-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.reply-tab {
    padding: 8px 16px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.reply-tab.active {
    background: rgba(255,255,255,0.1);
    font-weight: 600;
}

.reply-tab[data-type="internal"].active {
    background: rgba(243,156,18,0.15);
    color: #f39c12;
}

#reply-message {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
}

#reply-message:focus {
    outline: none;
    border-color: #e74c3c;
}

.reply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.attachment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.attachment-btn:hover {
    background: rgba(255,255,255,0.1);
}

.reply-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* === Seitenleiste === */
.ticket-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-section {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}

.sidebar-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-list .info-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-list .info-item:last-child {
    border-bottom: none;
}

.info-list .info-label {
    opacity: 0.6;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-buttons .pompeji-btn-primary,
.action-buttons .pompeji-btn-secondary {
    width: 100%;
    text-align: center;
}

.pompeji-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 8px;
}

.pompeji-select:focus {
    outline: none;
    border-color: #e74c3c;
}

/* === Log === */
.log-list {
    max-height: 300px;
    overflow-y: auto;
}

.log-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
}

.log-item:last-child {
    border-bottom: none;
}

.log-item .log-time {
    display: block;
    opacity: 0.4;
    font-size: 11px;
    margin-bottom: 2px;
}

.log-item .log-user {
    font-weight: 600;
}

/* === Ticket Counter === */
.pompeji-ticket-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.pompeji-ticket-counter:hover {
    opacity: 0.8;
}

.pompeji-counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.pompeji-counter-card {
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    text-align: center;
}

.pompeji-counter-card .pompeji-counter-badge {
    font-size: 32px;
    min-width: auto;
    height: auto;
    background: none !important;
    padding: 0;
}

.pompeji-counter-card .pompeji-counter-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.pompeji-counter-inline .pompeji-counter-badge {
    border-radius: 4px;
}

/* === Loading / Empty === */
.pompeji-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-size: 14px;
    opacity: 0.6;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pompeji-empty {
    text-align: center;
    padding: 40px;
    opacity: 0.5;
}

.pompeji-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* === Login Required === */
.pompeji-login-required,
.pompeji-no-permission {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
}

/* === Responsive === */
@media (max-width: 600px) {
    .pompeji-stepper {
        flex-direction: column;
        gap: 8px;
    }
    
    .pompeji-stepper .step-line {
        width: 2px;
        height: 20px;
        flex: none;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .my-tickets-filters,
    .overview-filters {
        flex-direction: column;
    }

    .pompeji-filter {
        width: 100%;
    }

    .overview-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .form-navigation {
        flex-direction: column;
    }
}
