/* Einfaches Dashboard CSS Design */

/* Haupt-Container */
.dashboard-index-container {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* Scrollbarer Apps-Bereich */
.dashboard-apps-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.dashboard-apps-scroll::-webkit-scrollbar {
    width: 6px;
}

.dashboard-apps-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.dashboard-apps-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Grid für die Apps */
.own-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Wrapper für jede App */
.app_wrapper {
    text-align: center;
}

/* Link-Styling */
.app_wrapper a {
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.2s ease;
}

.app_wrapper a:hover {
    text-decoration: none;
    color: white;
    transform: translateY(-5px);
}

/* Icon-Container */
.app_icon {
    width: 120px;
    height: 120px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover-Effekt für Icon */
.app_icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* App-Icon Bild */
.dashboard-index-app-icon {
    width: 60px;
    height: 60px;
}

/* App-Titel */
.app_title {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin-top: 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
    /* Auf Desktop füllt der Container die volle main-Höhe und scrollt intern
       (siehe html/body/main-Lock in myapp/home.html, nur ab 769px aktiv).
       Auf Mobile stattdessen normales Dokument-Scrollen: feste Höhe +
       overflow:hidden führte zusammen mit dem dynamischen 100vh mobiler
       Browser (Adressleiste ein-/ausblendend, v.a. Brave/Chrome) dazu, dass
       ein Teil der App-Kacheln nie erreichbar war. */
    .dashboard-index-container {
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .dashboard-apps-scroll {
        overflow-y: visible;
    }

    .own-apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .app_icon {
        width: 100px;
        height: 100px;
    }

    .dashboard-index-app-icon {
        width: 50px;
        height: 50px;
    }

    .app_title {
        font-size: 14px;
    }
}