/* heyde.schule - Modular CSS: 40_dashboard.css */

/* --- Dashboard Grid & Cards (Marks/Overview) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dashboard-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-1);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Clickable Unit Rows & Trees --- */
.unit-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
}

.unit-link-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-1);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.unit-link-row.status-missing {
    border-color: #ff4d4d;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3), inset 1px 1px 1px rgba(255,255,255,0.2) !important;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1), rgba(255, 77, 77, 0.02)) !important;
}
.unit-link-row.status-missing:hover {
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.5), inset 1px 1px 1px rgba(255,255,255,0.3) !important;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.15), rgba(255, 77, 77, 0.05)) !important;
}

.unit-link-row.status-pending {
    border-color: orange;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3), inset 1px 1px 1px rgba(255,255,255,0.2) !important;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 165, 0, 0.02)) !important;
}
.unit-link-row.status-pending:hover {
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.5), inset 1px 1px 1px rgba(255,255,255,0.3) !important;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 165, 0, 0.05)) !important;
}


.tree-container {
    margin-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 15px;
    margin-bottom: 10px;
}

.tree-node {
    position: relative;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-2);
}

.tree-node::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.childmode-badge {
    font-size: 0.7em;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    opacity: 0.7;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.dashboard-card-value {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
}

.dashboard-card-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-2);
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

/* Overall Grade Prominent Card */
.dashboard-card.highlight {
    background: linear-gradient(135deg, rgba(33, 67, 82, 0.8), rgba(22, 43, 54, 0.9));
    border: 1px solid var(--accent-1);
    box-shadow: 0 4px 15px rgba(244, 128, 36, 0.2);
    grid-column: 1 / -1; /* Nimmt volle Breite ein */
}

.dashboard-card.highlight .dashboard-card-value {
    font-size: 3.5rem;
    color: var(--accent-1);
    text-shadow: 0 0 10px rgba(244, 128, 36, 0.5);
}

/* To-Do / Alert Card */
.alert-card {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    border-left: 5px solid #ff4d4d;
    border-radius: var(--card-radius);
    padding: 16px;
    margin-bottom: var(--spacing-std);
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.15);
}

.alert-card-title {
    color: #ff4d4d;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Desktop Styles - Menü-Button ausblenden */
.menu-toggle {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {

    /* Modal Content/Box */
    .messagebox-content, .modal-matter {
      margin: 0% 50px auto 50px;
      width: calc(100% - 100px);
    }
    
    .messagebox-headline , .modal-headline {
        height: 50px;
        margin: 15% 50px 20px 50px;
    }
    
    .content-container {
        /*min-height: calc(100vh - 240px);*/
        padding: 0px 10px;
    }
    
    .site-title{
        font-size: 2rem !important;
        max-width: calc(100% - 205px);
    }
    
    .menu-container {
        width: 100%;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        background-color: var(--glass-bg);
        border: solid 1px var(--glass-border);
        color: var(--link-3);
        margin: 4px !important;
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(100, 100, 100, 0.1);
        cursor: pointer;
    }

    
    .menu-items {
        display: none;
    }

    .menu-items.active {
        display: block;
    }

    .menu-item {
        display: block;
        width: 100%;
        /*background-color: rgba(200, 200, 200, 0.8);*/
        padding: 0; /* Padding entfernt */
        text-align: center;
        margin: 0; /* Entfernt jeden Abstand zwischen den Items */
        border-radius: 3px;
    }

    .menu-item > a {
        display: block;
        width: 100%;
        color: #000;
        text-decoration: none;
        box-sizing: border-box; /* Sicherstellt, dass der Link das Elternelement komplett ausfüllt */
    }

    .menu-item:hover, .menu-toggle:hover {
        /*background-color: rgba(100, 100, 100, 0.5);*/
        transition: background-color 0.25s ease;
    }
}

html{
    font-size: 14px;
}
