/* Admin Support-Hub Styling */

@import url('style.css');

.admin-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 30px;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-header h1 {
    margin: 0;
    font-size: 2em;
    background: linear-gradient(45deg, #42a5f5, #ffc947);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Controls */
.controls {
    background: rgba(30, 34, 44, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.2);
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
}

.filter-select option {
    background: #1e222c;
    color: #fff;
}

/* Statistiken */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(25, 118, 210, 0.3);
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffc947;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9em;
    color: #90caf9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fälle Liste */
.faelle-liste {
    display: grid;
    gap: 20px;
}

.fall-card {
    background: rgba(30, 34, 44, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    border-left: 4px solid #1976d2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.fall-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.3);
}

.fall-card.status-offen {
    border-left-color: #ff9100;
}

.fall-card.status-bearbeitung {
    border-left-color: #1976d2;
}

.fall-card.status-warten {
    border-left-color: #ffc947;
}

.fall-card.status-geloest {
    border-left-color: #4caf50;
}

.fall-card.status-geschlossen {
    border-left-color: #757575;
    opacity: 0.7;
}

/* Fall Header */
.fall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fall-nummer {
    font-size: 1.2em;
    font-weight: 600;
    color: #90caf9;
}

.fall-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.badge.prioritaet-kritisch {
    background: rgba(244, 67, 54, 0.3);
    color: #ff5252;
}

.badge.prioritaet-hoch {
    background: rgba(255, 145, 0, 0.3);
    color: #ff9100;
}

.badge.prioritaet-normal {
    background: rgba(25, 118, 210, 0.3);
    color: #42a5f5;
}

.badge.prioritaet-niedrig {
    background: rgba(158, 158, 158, 0.3);
    color: #bdbdbd;
}

/* Fall Content */
.fall-betreff {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.1em;
}

.fall-beschreibung {
    margin-bottom: 15px;
    color: #b0bec5;
    line-height: 1.6;
}

.fall-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.meta-item {
    font-size: 0.9em;
    color: #90caf9;
}

.meta-item strong {
    color: #fff;
    margin-right: 5px;
}

/* Fall Actions */
.fall-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-select {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
}

.status-select option {
    background: #1e222c;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    max-width: 900px;
    margin: 40px auto;
    background: rgba(30, 34, 44, 0.95);
    border-radius: 24px;
    box-shadow: 0 16px 64px rgba(25, 118, 210, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: #90caf9;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
}

/* Chat */
.chat-info {
    padding: 20px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(25, 118, 210, 0.3);
}

.chat-info div {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.chat-info div:last-child {
    margin-bottom: 0;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.nachricht {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 3px solid;
}

.nachricht.user {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #42a5f5;
}

.nachricht.admin {
    background: rgba(25, 118, 210, 0.1);
    border-left-color: #1976d2;
}

.nachricht.system {
    background: rgba(255, 145, 0, 0.1);
    border-left-color: #ff9100;
}

.nachricht.intern {
    background: rgba(156, 39, 176, 0.15);
    border-left-color: #9c27b0;
}

.nachricht-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.nachricht-header strong {
    color: #90caf9;
}

.zeit {
    color: #757575;
    font-size: 0.85em;
}

.intern-badge {
    padding: 2px 8px;
    background: rgba(156, 39, 176, 0.3);
    border-radius: 8px;
    font-size: 0.8em;
    color: #ba68c8;
    margin-left: 8px;
}

.nachricht-text {
    color: #e0e0e0;
    line-height: 1.5;
}

/* Chat Input */
.chat-input {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
}

.chat-input textarea {
    width: 100%;
    margin-bottom: 12px;
}

.chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #90caf9;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Empty State */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #757575;
    font-size: 1.1em;
}

.error {
    text-align: center;
    padding: 20px;
    color: #ff5252;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .fall-meta {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
    }
}
