* { box-sizing: border-box; }
:root { --main-color: #6671D8; --accent-color: #525ECA; --bg-color: #f8f9fa; --sidebar-width: 250px; }
body { font-family: 'Segoe UI', sans-serif; margin: 0; background-color: var(--bg-color); display: flex; height: 100vh; overflow: hidden; }

/* Login Layout */
.login-wrapper { display: flex; width: 100%; justify-content: center; align-items: center; padding: 20px; }
.login-card { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; }

/* Dashboard Layout */
.sidebar { width: var(--sidebar-width); background: var(--main-color); color: white; transition: transform 0.3s ease; display: flex; flex-direction: column; z-index: 1000; }
.sidebar-header { padding: 25px 20px; font-size: 1.5em; font-weight: bold; text-align: center; background: var(--accent-color); }
.nav-menu { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.nav-item { padding: 15px 25px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-item:hover, .nav-item.active { background: var(--accent-color); }

.main-content { flex-grow: 1; overflow-y: auto; padding: 30px; width: 100%; }
.content-container { width: 100%; max-width: 1000px; margin: 0 auto; }

.menu-toggle { display: none; position: fixed; top: 15px; left: 15px; background: var(--main-color); color: white; padding: 10px 15px; border-radius: 5px; cursor: pointer; z-index: 1200; }

@media (max-width: 768px) {
    .sidebar { position: fixed; left: 0; height: 100%; transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .sidebar-header { padding-top: 70px; }
    .menu-toggle { display: block; }
    .main-content { padding: 80px 15px 20px 15px; }
}

/* Gemeinsame Elemente */
.card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; }
.btn { background: var(--main-color); color: white; border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; width: 100%; }
/* Toast-Benachrichtigung Style */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #28a745; /* Erfolgs-Grün */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    transform: translateX(120%); /* Startet außerhalb des Bildschirms */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0); /* Fliegt rein */
}

.toast.error {
    background: #dc3545; /* Fehler-Rot */
}

input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; }
