/* Grundlegendes modernes Styling & Dark Mode */
body {
    background-color: #121214;
    color: #e1e1e6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

/* NEU: Sprengt die Ketten! Nutzt jetzt fast die volle Breite deines großen Monitors */
.app-container {
    max-width: 96vw;
    width: 100%;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #ffffff;
    margin-bottom: 5px;
}

header h1 span {
    color: #40916c; /* Edles Waldgrün als Markenfarbe */
}

header p {
    color: #8f8f9d;
    margin: 0;
}

/* --- NEU: Das saubere, symmetrische 3-Spalten Layout --- */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr 1fr; /* Links Regler, Mitte & Rechts teilen sich exakt den Rest */
    gap: 25px;
    align-items: start;
    height: calc(100vh - 190px);
}

section {
    background-color: #1a1a1e;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #29292e;
}

/* Spalten scrollbar machen, ohne die Seite zu strecken */
.controls-sidebar, .preview-area, .right-navigation {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- NEU: Schicke Dark-Mode Scrollbalken --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #121214; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #3e3e46; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #40916c; 
}

h2 {
    color: #40916c; /* Waldgrün für die Überschriften */
    margin-top: 0;
    font-size: 1.2rem;
}

/* Schicke Formularelemente */
.control-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #c4c4cc;
    font-weight: 600;
}

input[type="file"], select, input[type="number"] {
    width: 100%;
    padding: 10px;
    background-color: #121214;
    border: 1px solid #29292e;
    border-radius: 6px;
    color: #e1e1e6;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

/* Fokus-Effekt für die Eingabefelder */
input[type="file"]:focus, select:focus, input[type="number"]:focus {
    border-color: #40916c;
}

/* Platzhalter für das Vorschau-Grid */
.placeholder-box {
    border: 2px dashed #29292e;
    border-radius: 6px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f8f9d;
}

/* Überschriften-Design für die rechte Spalte */
.right-navigation h2 {
    font-size: 0.95rem;
    color: #8f8f9d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #29292e;
    padding-bottom: 8px;
}

/* --- NEU: Login-Seite --- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background-color: #1a1a1e;
    border-radius: 8px;
    border: 1px solid #29292e;
    padding: 40px;
    width: 100%;
    max-width: 360px;
}

.login-box header {
    margin-bottom: 25px;
}

.login-box input[type="text"], .login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    background-color: #121214;
    border: 1px solid #29292e;
    border-radius: 6px;
    color: #e1e1e6;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    margin-bottom: 15px;
}

.login-box input[type="text"]:focus, .login-box input[type="password"]:focus {
    border-color: #40916c;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #40916c;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-box button:hover {
    background-color: #359160;
}

.error-message {
    color: #e05252;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* --- NEU: Modal für "Passwort ändern" --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay.visible {
    display: flex;
}

.modal-box {
    background-color: #1a1a1e;
    border-radius: 8px;
    border: 1px solid #29292e;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
}

.modal-box h2 {
    margin-top: 0;
}

.modal-box p.hinweis {
    color: #8f8f9d;
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-box input[type="password"] {
    width: 100%;
    padding: 10px;
    background-color: #121214;
    border: 1px solid #29292e;
    border-radius: 6px;
    color: #e1e1e6;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    margin-bottom: 15px;
}

.modal-box input[type="password"]:focus {
    border-color: #40916c;
}

.modal-box button {
    width: 100%;
    padding: 12px;
    background-color: #40916c;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-box button:hover {
    background-color: #359160;
}

.tour-buttons {
    display: flex;
    gap: 10px;
}

.tour-buttons button {
    flex: 1;
}

/* Wiederverwendbarer "Zurück"/Aktions-Button, den mehrere Seiten nutzen */
.studio-back-btn {
    background: #29292e;
    color: #c4c4cc;
    border: 1px solid #3e3e46;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.85rem;
    transition: 0.2s;
}

.studio-back-btn:hover {
    background: #3e3e46;
    color: #fff;
}

.modal-box button.sekundaer {
    background-color: #29292e;
    border: 1px solid #3e3e46;
}

.modal-box button.sekundaer:hover {
    background-color: #3e3e46;
}