/* AZUBI VIDEO MEETING MANAGER - STYLES */
/* Einheitliches Design für beide Dashboards */

/* ===== GRID LAYOUT ===== */
.avmm-appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* ===== TERMINKARTEN ===== */
.avmm-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-height: 220px;
    overflow: hidden;
}

.avmm-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Status-Farben für linke Border */
.avmm-card.status-pending {
    border-left: 4px solid #ff9800;
}
.avmm-card.status-confirmed {
    border-left: 4px solid #4CAF50;
}
.avmm-card.status-cancelled {
    border-left: 4px solid #f44336;
    opacity: 0.7;
}
.avmm-card.status-completed {
    border-left: 4px solid #9E9E9E;
}

/* ===== KOPFZEILE ===== */
.avmm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-right: 35px; /* Platz für Lösch-Button */
}

.avmm-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Status-Badge */
.avmm-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pending .avmm-status-badge {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.status-confirmed .avmm-status-badge {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-cancelled .avmm-status-badge {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.status-completed .avmm-status-badge {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* ===== DETAILS ===== */
.avmm-details {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.avmm-details div {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.avmm-details strong {
    min-width: 85px;
    display: inline-block;
    color: #333;
    margin-right: 5px;
}

/* Meeting-Link */
.avmm-meeting-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    background: #E3F2FD;
    display: inline-block;
    transition: all 0.2s;
}
.avmm-meeting-link:hover {
    background: #2196F3;
    color: white;
    text-decoration: none;
}

/* ===== NACHRICHT ===== */
.avmm-message {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* ===== AKTIONSBUTTONS ===== */
.avmm-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avmm-confirm-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.3s;
}
.avmm-confirm-btn:hover {
    background: #388E3C;
}

.avmm-cancel-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}
.avmm-cancel-btn:hover {
    background: #F57C00;
}

/* ===== LÖSCH-BUTTON ===== */
.avmm-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #ccc;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}
.avmm-delete-btn:hover {
    color: #ff4444;
    background: #fff5f5;
    transform: scale(1.1);
}

/* ===== LOADING & EMPTY STATES ===== */
.avmm-loading, .avmm-empty {
    text-align: center;
    padding: 30px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
    grid-column: 1 / -1;
}

.avmm-error {
    padding: 15px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    color: #c62828;
    grid-column: 1 / -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .avmm-appointments-grid {
        grid-template-columns: 1fr;
    }
    
    .avmm-card {
        max-height: none;
    }
}

/* ===== ANIMATIONEN ===== */
@keyframes avmmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.avmm-card {
    animation: avmmFadeIn 0.3s ease;
}