/**
 * Mühlentagebuch - Dashboard Styles
 * @package Muehlentagebuch
 * @since 2.1.0
 */

/* DASHBOARD CONTAINER */
.muehlentagebuch-dashboard { max-width: 1200px; margin: 20px auto; padding: 20px; }
.muehlentagebuch-dashboard h3 { color: #2c3e50; margin: 0 0 25px 0; font-size: 1.5em; text-align: center; }

/* DASHBOARD CARDS */
.dashboard-card { background: white; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; }
.dashboard-card.dark { background: #2d2d3a; color: white; }
.dashboard-card.dark ul { list-style: none; padding: 0; margin: 0; }
.dashboard-card.dark ul li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dashboard-card.dark ul li:last-child { border-bottom: none; }
.dashboard-card-header { background: linear-gradient(135deg, #3498db, #2980b9); color: white; padding: 20px; }
.dashboard-card-header h4 { margin: 0; font-size: 1.2em; }
.dashboard-card-content { padding: 20px; }

/* DASHBOARD GRID */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* STAT CARDS */
.stat-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); }
.stat-card .stat-icon { font-size: 40px; margin-bottom: 10px; }
.stat-card .stat-value { font-size: 36px; font-weight: bold; color: #3498db; }
.stat-card .stat-label { font-size: 14px; color: #7f8c8d; margin-top: 5px; }
.stat-card.success .stat-value { color: #27ae60; }
.stat-card.warning .stat-value { color: #f39c12; }
.stat-card.danger .stat-value { color: #e74c3c; }

/* RECENT ENTRIES */
.recent-entries-list { list-style: none; padding: 0; margin: 0; }
.recent-entry-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #eee; transition: background 0.2s ease; }
.recent-entry-item:last-child { border-bottom: none; }
.recent-entry-item:hover { background: #f8f9fa; }
.recent-entry-icon { width: 40px; height: 40px; border-radius: 50%; background: #3498db; color: white; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 15px; }
.recent-entry-content { flex: 1; }
.recent-entry-title { font-weight: 600; color: #2c3e50; margin-bottom: 3px; }
.recent-entry-meta { font-size: 12px; color: #95a5a6; }
.recent-entry-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }

/* ENTRY TYPE COLORS */
.entry-type-logbuch { background: #3498db; color: white; }
.entry-type-idee { background: #f1c40f; color: #333; }
.entry-type-todo { background: #27ae60; color: white; }
.entry-type-merkposten { background: #e74c3c; color: white; }
.entry-type-handbuch { background: #9b59b6; color: white; }
.entry-type-event { background: #1abc9c; color: white; }

/* QUICK ACTIONS */
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px; background: #f8f9fa; border-radius: 10px; }
.quick-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: white; border: 2px solid #e9ecef; border-radius: 8px; color: #2c3e50; text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.quick-action-btn:hover { border-color: #3498db; background: rgba(52,152,219,0.1); color: #3498db; }

/* ARBEITSPLAN WIDGET */
.arbeitsplan-widget { background: #f8f9fa; border-radius: 10px; padding: 15px; margin-bottom: 15px; }
.arbeitsplan-widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.arbeitsplan-widget-title { font-weight: 600; color: #2c3e50; display: flex; align-items: center; gap: 8px; }
.arbeitsplan-widget-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.arbeitsplan-progress { height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.arbeitsplan-progress-bar { height: 100%; background: linear-gradient(90deg, #27ae60, #2ecc71); transition: width 0.5s ease; }
.arbeitsplan-topics { margin-top: 10px; }
.arbeitsplan-topic { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e9ecef; }
.arbeitsplan-topic:last-child { border-bottom: none; }
.arbeitsplan-topic-checkbox { width: 18px; height: 18px; }
.arbeitsplan-topic-name { flex: 1; font-size: 14px; }
.arbeitsplan-topic-status { font-size: 12px; color: #95a5a6; }

/* KORN STATISTIK */
.korn-statistik { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.korn-stat-item { text-align: center; padding: 15px; background: #f8f9fa; border-radius: 8px; }
.korn-stat-icon { font-size: 30px; margin-bottom: 8px; }
.korn-stat-value { font-size: 24px; font-weight: bold; color: #2c3e50; }
.korn-stat-label { font-size: 12px; color: #7f8c8d; }
.korn-stat-item.roggen { border-left: 4px solid #8b4513; }
.korn-stat-item.weizen { border-left: 4px solid #daa520; }
.korn-stat-item.dinkel { border-left: 4px solid #cd853f; }

/* KOMPONENTEN STATUS */
.komponenten-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.komponenten-status-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #3498db; }
.komponenten-status-item.aktiv { border-left-color: #27ae60; background: #d4edda; }
.komponenten-status-item.inaktiv { border-left-color: #95a5a6; background: #e9ecef; }
.komponenten-status-item.reparatur { border-left-color: #e67e22; background: #ffeeba; }
.komponenten-status-icon { font-size: 20px; }
.komponenten-status-name { font-size: 13px; font-weight: 500; }

/* FÄLLIGE AUFGABEN */
.faellige-aufgaben-list { list-style: none; padding: 0; margin: 0; }
.faellige-aufgabe-item { display: flex; align-items: center; padding: 12px; border-left: 4px solid #e74c3c; background: #fff5f5; margin-bottom: 8px; border-radius: 0 8px 8px 0; }
.faellige-aufgabe-item.warnung { border-left-color: #f39c12; background: #fffbf0; }
.faellige-aufgabe-icon { font-size: 20px; margin-right: 12px; }
.faellige-aufgabe-content { flex: 1; }
.faellige-aufgabe-title { font-weight: 600; color: #2c3e50; }
.faellige-aufgabe-meta { font-size: 12px; color: #7f8c8d; }

/* KALENDER WIDGET */
.kalender-widget { background: white; border-radius: 10px; overflow: hidden; }
.kalender-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #3498db; color: white; }
.kalender-nav { background: none; border: none; color: white; font-size: 18px; cursor: pointer; padding: 5px 10px; }
.kalender-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.kalender-day-header { padding: 10px; text-align: center; font-weight: 600; background: #f8f9fa; font-size: 12px; }
.kalender-day { padding: 10px; text-align: center; border: 1px solid #eee; min-height: 40px; cursor: pointer; transition: background 0.2s ease; }
.kalender-day:hover { background: #f8f9fa; }
.kalender-day.today { background: #3498db; color: white; }
.kalender-day.has-entry { position: relative; }
.kalender-day.has-entry::after { content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; background: #27ae60; border-radius: 50%; }

/* RESPONSIVE DASHBOARD */
@media screen and (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .korn-statistik { grid-template-columns: 1fr; }
    .komponenten-status-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { justify-content: center; }
}
@media screen and (max-width: 480px) {
    .stat-card .stat-value { font-size: 28px; }
    .komponenten-status-grid { grid-template-columns: 1fr; }
}
