:root {
    --bg-app: #f3f4f6;
    --bg-sidebar: #111111;
    --bg-sidebar-hover: #1e1e1e;
    --bg-sidebar-active: #ffffff;
    --text-main: #111111;
    --text-muted: #6b7280;
    --text-sidebar: #d1d5db;
    --text-sidebar-active: #111111;
    --border-light: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: var(--bg-app);
    color: var(--text-main);
}

body {
    min-height: 100vh;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-app);
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: white;
    padding: 24px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-brand {
    padding: 8px 10px 4px;
}

.sidebar-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.2px;
}

.sidebar-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: block;
    text-decoration: none;
    color: var(--text-sidebar);
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover {
    background: var(--bg-sidebar-hover);
    color: white;
    transform: translateX(2px);
}

.sidebar-link.active {
    background: var(--bg-sidebar-active);
    color: var(--text-sidebar-active);
}

.app-content {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.content-shell {
    min-height: calc(100vh - 56px);
    background: #ffffff;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #111;
    color: white;
    padding: 14px 18px;
    border-radius: 14px;

    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    animation: toast-in 0.25s ease forwards;

    min-width: 220px;
    max-width: 320px;
}

/* verschiedene Typen */
.toast.success {
    background: #1f8a4c;
}

.toast.error {
    background: #c0392b;
}

.toast.warning {
    background: #e67e22;
}

/* Animation rein */
@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation raus */
.toast.hide {
    animation: toast-out 0.25s ease forwards;
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.toast-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.toast-text {
    flex: 1;
}

@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 18px 16px;
    }

    .sidebar-inner {
        gap: 20px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-link {
        flex: 0 0 auto;
    }

    .app-content {
        padding: 16px;
    }

    .content-shell {
        min-height: auto;
        border-radius: 20px;
        padding: 20px;
    }
}

.toast.error {
    background: #c62828;
    color: white;
}

.toast.success {
    background: black;
    color: white;
}