:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #bb86fc;
    --border: #333;
    
    /* Neon Status Farben */
    --status-office: #00e676;   /* Grün */
    --status-travel: #d500f9;   /* Lila */
    --status-home: #2979ff;     /* Blau */
    --status-vacation: #ff9100; /* Orange */
    --status-sick: #ff1744;     /* Rot */
    --status-off: #b0bec5;      /* Weiß/Grau (Feierabend) */
}

/* Global Reset */
* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 15px;
    display: flex;
    justify-content: center;
}

.container { width: 100%; max-width: 800px; }

/* --- INPUTS & BUTTONS --- */
input, select, button {
    width: 100%;
    padding: 12px 15px;
    margin: 6px 0 12px 0;
    background: #2c2c2c;
    border: 1px solid var(--border);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    background-color: var(--accent);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
button:hover { opacity: 0.9; }

.lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
}

/* --- HEADER --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

/* --- ACCORDION CARD (Einklappbar) --- */
.my-status-card {
    background: #252525;
    padding: 0; 
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #2a2a2a;
    user-select: none;
}

.card-header:hover { background: #333; }
.card-header h4 { margin: 0; font-size: 1rem; letter-spacing: 0.5px; }

.toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
/* Dreht den Pfeil, wenn zugeklappt */
.toggle-icon.rotated { transform: rotate(-90deg); }

.card-content {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: block;
}

/* Hilfsklasse zum Ausblenden */
.hidden { display: none !important; }

/* --- FILTER PILLS --- */
.filter-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-container::-webkit-scrollbar { display: none; }

.filter-pill {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 8px;
    border-radius: 50px;
    background: #2c2c2c;
    border: 1px solid #444;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    margin-bottom: 0;
}

.filter-pill.active {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* --- SEARCH --- */
.search-container { margin-bottom: 20px; }

.search-input {
    border-radius: 50px;
    background: #1a1a1a;
    border: 1px solid #333;
    transition: all 0.2s;
}
.search-input:focus {
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.15);
}

/* --- USER LIST --- */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
}

/* Badge Style */
.status-badge {
    display: inline-flex;
    align-items: center;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 50px;
    padding: 6px 14px;
    min-width: 130px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 0.85rem;
    color: #e0e0e0;
    box-shadow: inset 0 0 8px #000;
}

.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--led-color);
    box-shadow: 0 0 5px var(--led-color), 0 0 10px var(--led-color);
}

/* LED Zuordnung */
.st-office   { --led-color: var(--status-office); }
.st-travel   { --led-color: var(--status-travel); }
.st-home     { --led-color: var(--status-home); }
.st-vacation { --led-color: var(--status-vacation); }
.st-sick     { --led-color: var(--status-sick); }
.st-off      { --led-color: var(--status-off); }

.user-info {
    flex-grow: 1;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.info-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.detail-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.08);
    padding: 3px 8px;
    border-radius: 4px;
}

/* --- ADMIN --- */
.admin-controls {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #333;
    min-width: 160px;
}
.admin-input, .admin-select {
    padding: 4px 8px;
    height: 32px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}
.btn-small {
    padding: 0 10px;
    font-size: 0.75em;
    height: 32px;
    width: auto;
    margin: 0;
}

/* --- MOBILE --- */
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .user-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .user-info { margin-left: 0; width: 100%; border-top: 1px solid #333; padding-top: 10px; }
    .status-badge { width: 100%; justify-content: center; }
    .admin-controls { width: 100%; border-left: none; border-top: 1px dashed #333; padding-top: 10px; margin-top: 5px; margin-left: 0; }
}
