/* CONTAINER */
.meelo-dash-wrap {
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    min-height: 600px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* SIDEBAR */
.meelo-dash-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}
.dash-profile-header { text-align: center; margin-bottom: 40px; }
.dash-avatar img { border-radius: 50%; width: 80px; height: 80px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.dash-welcome { margin-top: 15px; }
.dash-welcome span { display: block; font-size: 0.8rem; color: #64748b; }
.dash-welcome strong { font-size: 1.1rem; color: #1e293b; }

.dash-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-label { font-size: 0.7rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin: 20px 0 5px 10px; letter-spacing: 0.5px; }
.dash-link { 
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; 
    border-radius: 8px; color: #475569; text-decoration: none; font-weight: 500; transition: 0.2s; 
}
.dash-link i { font-size: 18px; }
.dash-link:hover { background: #e2e8f0; color: #1e293b; }
.dash-link.active { background: #fff; color: #00509d; box-shadow: 0 2px 5px rgba(0,0,0,0.03); font-weight: 600; }
.dash-link.logout { color: #ef4444; margin-top: auto; }
.dash-link.logout:hover { background: #fee2e2; }

/* MAIN CONTENT */
.meelo-dash-main { flex: 1; padding: 40px; background: #fff; }
.dash-view { display: none; animation: fadeIn 0.3s; }
.dash-view.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }

.dash-header { margin-bottom: 30px; }
.dash-header.flex { display: flex; justify-content: space-between; align-items: center; }
.dash-header h1 { margin: 0; font-size: 1.8rem; color: #1e293b; font-weight: 700; }
.dash-header p { color: #64748b; margin: 5px 0 0; }

/* STATS */
.dash-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.d-card.stat { display: flex; align-items: center; gap: 15px; padding: 20px; border-radius: 12px; border: 1px solid #f1f5f9; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.01); }
.d-card .icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex-shrink: 0; }
.bg-blue { background: #3b82f6; } .bg-orange { background: #f97316; } .bg-green { background: #10b981; }
.d-card .data { display: flex; flex-direction: column; }
.d-card .num { font-size: 1.5rem; font-weight: 800; color: #1e293b; line-height: 1; }
.d-card .lbl { font-size: 0.8rem; color: #64748b; margin-top: 4px; }

/* LISTE */
.list-item { display: flex; align-items: center; padding: 15px; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; transition: 0.2s; background: #fff; }
.list-item:hover { border-color: #cbd5e1; transform: translateX(2px); }
.li-img { width: 50px; height: 50px; background: #f1f5f9; border-radius: 8px; margin-right: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.li-img img { width: 100%; height: 100%; object-fit: cover; }
.li-content { flex: 1; }
.li-content h4 { margin: 0 0 4px; font-size: 1rem; color: #334155; }
.li-meta { font-size: 0.8rem; color: #94a3b8; display: flex; gap: 10px; align-items: center; }
.li-actions { display: flex; gap: 8px; }
.action-btn { width: 34px; height: 34px; border-radius: 6px; background: #f1f5f9; color: #64748b; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; text-decoration: none; transition: 0.2s; }
.action-btn:hover { background: #00509d; color: #fff; }

.badge { padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.orange { background: #ffedd5; color: #9a3412; }
.badge.gray { background: #f1f5f9; color: #64748b; }

/* FORMS */
.dash-form { max-width: 500px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #334155; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
.form-group input:focus { border-color: #00509d; outline: none; }

.switch-row { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px; cursor: pointer; }
.switch-text strong { display: block; color: #334155; }
.switch-text small { color: #64748b; }

.dash-btn { background: #00509d; color: #fff; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.95rem; text-decoration: none; display: inline-block; }
.dash-btn:hover { background: #003c75; color: #fff; }
.dash-btn.small { padding: 8px 16px; font-size: 0.85rem; }

.qa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: #0f172a; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; margin-right: 10px; transition: 0.2s; }
.qa-btn:hover { background: #334155; transform: translateY(-2px); color: #fff; }
.qa-btn.outline { background: #fff; border: 1px solid #e2e8f0; color: #334155; }
.qa-btn.outline:hover { border-color: #94a3b8; }

/* MOBILE */
@media (max-width: 900px) {
    .meelo-dash-wrap { flex-direction: column; }
    .meelo-dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e2e8f0; padding: 20px; box-sizing: border-box; }
    .dash-profile-header { display: flex; align-items: center; gap: 15px; text-align: left; margin-bottom: 20px; }
    .dash-avatar img { width: 50px; height: 50px; }
    .dash-nav { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 5px; }
    .nav-label { display: none; }
    .dash-link { white-space: nowrap; padding: 8px 12px; font-size: 0.9rem; }
    .dash-link i { font-size: 16px; }
    .meelo-dash-main { padding: 20px; }
    .dash-stats-grid { grid-template-columns: 1fr; }
}
/* =========================================
   FIX: KEINE UNTERSTRICHENEN LINKS
   ========================================= */

/* Entfernt Unterstriche bei allen Links im Dashboard */
.meelo-dash-wrap a {
    text-decoration: none !important;
    box-shadow: none !important;    /* Manche Themes nutzen Box-Shadow als Linie */
    border-bottom: none !important;  /* Manche Themes nutzen Border */
    background-image: none !important; /* Manche Themes nutzen Background-Gradient */
}

/* Hover-Effekte trotzdem zulassen (aber keine Linie) */
.meelo-dash-wrap a:hover {
    text-decoration: none !important;
}

/* Spezifische Korrektur für Listen-Titel */
.d-info h4 a {
    color: #2d3748 !important;
}
.d-info h4 a:hover {
    color: #00509d !important; /* Hauptfarbe beim Hover */
}