/* Transport Inbox Erweiterungen v3.6.0 - Komplett überarbeitet */

.inbox-section-header {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #333);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light, #e0e0e0);
}

/* ============================================
   NEUE Transport-Request Card (v3.6.0)
   ============================================ */

.transport-request-card {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.transport-request-card.urgency-sofort {
    border-color: #dc3545;
    box-shadow: 0 2px 12px rgba(220,53,69,0.2);
}

.transport-request-card.urgency-dringend {
    border-color: #ffc107;
    box-shadow: 0 2px 12px rgba(255,193,7,0.2);
}

.transport-request-card.urgency-normal {
    border-color: #28a745;
}

/* Header */
.tr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.tr-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tr-direction {
    font-size: 1.1rem;
}

.tr-from-to {
    font-size: 0.95rem;
    color: #333;
}

.tr-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.tr-urgency {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tr-urgency.urgency-sofort {
    background: #dc3545;
    color: white;
}

.tr-urgency.urgency-dringend {
    background: #ffc107;
    color: #333;
}

.tr-urgency.urgency-normal {
    background: #28a745;
    color: white;
}

.tr-close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.tr-close-btn:hover {
    color: #dc3545;
}

/* Body */
.tr-body {
    padding: 12px 14px;
}

.tr-patient, .tr-type {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
}

/* Ressourcen-Auswahl */
.tr-resource-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.tr-resource-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.tr-resource-select {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

/* Zugewiesene Ressource */
.tr-assigned-resource {
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.tr-assigned-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: white;
}

.tr-assigned-icon {
    font-size: 1rem;
}

.tr-assigned-name {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.tr-assigned-status {
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tr-status-buttons {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: #f8f9fa;
    justify-content: center;
}

.tr-status-btn {
    width: 36px;
    height: 36px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.15s;
}

.tr-status-btn:hover {
    opacity: 0.85;
    transform: scale(1.08);
}

.tr-status-btn.active {
    opacity: 1;
    border-color: #333;
    transform: scale(1.12);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Chat-Bereich */
.tr-chat {
    margin-top: 10px;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
}

.tr-chat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
}

.tr-chat-messages {
    max-height: 150px;
    overflow-y: auto;
    padding: 8px;
    background: #fafbfc;
    border-radius: 6px;
    margin-bottom: 10px;
}

.tr-chat-empty {
    text-align: center;
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 12px;
}

/* Chat-Bubbles */
.tr-msg {
    max-width: 85%;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
}

.tr-msg.own {
    margin-left: auto;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.tr-msg.other {
    margin-right: auto;
    background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    color: white;
    border-bottom-left-radius: 4px;
}

.tr-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    opacity: 0.9;
}

.tr-msg-from {
    font-weight: 600;
    font-size: 0.8rem;
}

.tr-msg-time {
    font-size: 0.7rem;
    opacity: 0.8;
}

.tr-msg-text {
    line-height: 1.4;
}

/* Chat-Input */
.tr-chat-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tr-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.tr-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.tr-send-btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tr-send-btn:hover {
    background: #0056b3;
}

.tr-close-btn-small {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tr-close-btn-small:hover {
    background: #f8f9fa;
    color: #dc3545;
    border-color: #dc3545;
}

/* Footer */
.tr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.tr-status-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.tr-finish-btn {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tr-finish-btn:hover {
    background: #218838;
}

/* ============================================
   Empty State & Toast (behalten)
   ============================================ */

.empty-state-small {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted, #6c757d);
    font-size: 0.95rem;
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Legacy Styles (für Kompatibilität)
   ============================================ */

.transport-request-item {
    background: var(--card-bg, #fff);
    border: 2px solid #6c757d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.transport-card-resource {
    margin: 10px 0;
    padding: 10px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 6px;
}

.transport-card-resource label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary, #666);
}

.transport-card-resource select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-size: 0.9rem;
}
