/* 1. Globale Theme-Variablen */
:root {
    --bg-main: #121212;
    --bg-card: #1a1a1a;
    --text-main: #daffde;
    --text-muted: #888;
    --accent-green: #deff9a;
    --accent-yellow: #ffeb3b;
    --border-color: #222;
    --prio-critical: #ff4444;
    --prio-high: #fd7e14;
    --font-family: 'Urbanist', sans-serif;
    --radius-main: 4px; 
    --radius-small: 2px;
}

/* 2. Container & Layout */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
}

.main-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

.dashboard-header { text-align: center; margin-bottom: 50px; }
.dashboard-header h1 { font-weight: 500; font-size: 48px; color: #f5f5f5; }
.dashboard-header h1 span { color: var(--accent-green); }
.subtitle { color: #888; font-size: 18px; margin-top: 10px; }

/* 3. Ticket Anlage (Input) */
.ticket-anlage { margin-bottom: 40px; text-align: center; }
.custom-input {
    width: 100%;
    max-width: 700px;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: var(--radius-small); 
    color: var(--text-main);
    font-size: 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(222, 255, 154, 0.1);
}

/* 4. Ticket Cards */
.ticket-list { display: flex; flex-direction: column; gap: 20px; }
.ticket-card {
    background: var(--bg-card);
    border-radius: var(--radius-main); 
    padding: 25px;
    border-left: 4px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.ticket-card:hover:not(.is-waiting) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Prio-Farben am Rand */
.priority-critical { border-left-color: var(--prio-critical); }
.priority-high { border-left-color: var(--prio-high); }
.priority-medium { border-left-color: var(--accent-green); }

/* Card Content */
.ticket-main-click { cursor: pointer; flex-grow: 1; }
.card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.prio-badge {
    font-size: 12px; font-weight: bold; text-transform: uppercase;
    padding: 5px 12px; 
    border-radius: var(--radius-small); 
    background: rgba(222, 255, 154, 0.1); color: var(--accent-green);
}
.priority-critical .prio-badge { color: var(--prio-critical); background: rgba(255, 68, 68, 0.1); }

.ticket-date { color: var(--text-muted); }
.ticket-title { font-size: 24px; font-weight: 500; color: #f5f5f5; margin: 0 0 10px 0; }
.ticket-preview p { color: #daffde; opacity: 0.8; line-height: 1.6; margin: 0; }

/* Actions Row */
.ticket-actions-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
}
.meta-info { color: var(--text-muted); font-size: 14px; }
.meta-info i { margin-right: 5px; color: var(--accent-green); }
.action-buttons { display: flex; gap: 10px; }

/* Custom Buttons */
.custom-btn {
    padding: 8px 20px; 
    border-radius: var(--radius-main); 
    font-weight: 500; font-size: 14px;
    cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid transparent;
}
.btn-complete { background: transparent; border-color: var(--accent-green); color: var(--accent-green); }
.btn-complete:hover { background: var(--accent-green); color: #121212; }

.btn-wait { background: transparent; border-color: var(--accent-yellow); color: var(--accent-yellow); }
.btn-wait:hover { background: var(--accent-yellow); color: #121212; }

/* 5. Waiting Status & Trenner */
.is-waiting { opacity: 0.6; background-color: #1a1a1a; border-left-color: #555 !important; }
.is-waiting .prio-badge { background: rgba(100,100,100,0.1); color: #777; }
.is-waiting .ticket-title { color: #bbb; }
.is-waiting .ticket-actions-row { border-top-color: rgba(255,255,255,0.02); }

.waiting-separator {
    display: flex; align-items: center; text-align: center;
    margin: 50px 0 30px 0; color: #6c757d; font-size: 14px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.dashed-line { flex-grow: 1; border: none; border-top: 2px dashed #444; margin: 0 1.5rem; opacity: 1; }
.separator-text { color: var(--text-muted); }