/* --- Dashboard CSS (Glassmorphism & Struktur) --- */
.ja-dashboard-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 100100; /* Liegt über dem Listen-Modal, um Fokus zu wahren */
    display: flex; align-items: center; justify-content: center;
}
.ja-dashboard-container {
    width: 90%; max-width: 1200px; max-height: 85vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Statusbar im originalen Dunkelblau */
.ja-dashboard-statusbar {
    background: #022093; color: #fff;
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
}
.ja-statusbar-right { display: flex; align-items: center; gap: 15px; }
.ja-user-welcome { color: #f4b41a; font-weight: bold; }
.ja-role-badge { background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; }
.ja-dashboard-close-btn { background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; line-height: 1; }

.ja-dashboard-content { padding: 25px; overflow-y: auto; }

/* Grid für die kleine Statistik */
.ja-dashboard-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px;
}
.ja-stat-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.ja-stat-highlight { border-left: 4px solid #00c4b4; }
.ja-stat-icon { font-size: 2rem; }
.ja-stat-info { display: flex; flex-direction: column; }
.ja-stat-value { font-size: 1.8rem; font-weight: bold; color: #022093; line-height: 1.1; }
.ja-stat-label { font-size: 0.85rem; color: #555; margin-top: 4px; }

/* Tabellen-Styling */
.ja-dashboard-section { background: white; border-radius: 8px; padding: 20px; border: 1px solid #eef0f5; }
.ja-section-title { margin-top: 0; margin-bottom: 15px; color: #022093; font-size: 1.1rem; }
.ja-dashboard-table { width: 100%; border-collapse: collapse; text-align: left; }
.ja-dashboard-table th { padding: 12px; border-bottom: 2px solid #eef0f5; color: #666; font-size: 0.9rem; }
.ja-dashboard-table td { padding: 12px; border-bottom: 1px solid #eef0f5; vertical-align: middle; }
.ja-badge-count { background: #00c4b4; color: white; padding: 2px 8px; border-radius: 12px; font-weight: bold; font-size: 0.85rem; }
.ja-table-btn { background: transparent; border: 1px solid #022093; color: #022093; padding: 5px 12px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; transition: 0.2s; }
.ja-table-btn:hover { background: #022093; color: white; }

/* Wenn die Inbox ungelesene Jobs enthält, wird der linke Rand türkis gefärbt */
.ja-stat-card.ja-inbox-card.has-unread {
    border-left: 4px solid #00c4b4;
    background: rgba(255, 255, 255, 0.8); /* Optional: Macht die Kachel minimal heller, wenn "Neu" */
    transition: border-left 0.3s ease;     /* Weicher Übergang beim Auf- und Abblinken */
}

/* Klickbare Inbox-Kachel mit Schwebe-Effekt */
.ja-inbox-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ja-inbox-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}