/* frontend/style.css */

/* Google Font Import (Inter - Modern & Clean) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Farben & Variablen */
    --glass-bg: rgba(30, 41, 59, 0.7);       /* Dunkleres Milchglas für besseren Kontrast */
    --glass-border: rgba(255, 255, 255, 0.1);   /* Leuchtende Kanten */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Tiefer Schatten */
    
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    
    --accent: #e30613;      /* Feuerwehr Rot */
    --accent-hover: #ff3341;
    --success: #2ecc71;
    
    --sidebar-width: 280px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    color: var(--text-main);
    
    /* Hintergrundbild */
    background: url('graphics/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* --- GLASSMORPHISM BASIS-KLASSE --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);          /* Der Milchglas-Effekt */
    -webkit-backdrop-filter: blur(12px);  /* Für Safari */
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* --- LAYOUT --- */
.app-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    transition: all 0.3s ease;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item {
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-item .icon { font-size: 1.2rem; }

/* Logout Button unten */
.logout-btn {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.8), rgba(192, 57, 43, 0.9));
    color: white !important;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    border: none;
    cursor: pointer;
}
.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.6);
}

/* --- MAIN CONTENT AREA --- */
.main-content {
    flex: 1;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
}

/* Top Bar innerhalb des Main Content */
.top-bar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 35px; height: 35px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    color: white;
}

.org-badge {
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
}

/* Content Body */
.content-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto; 
}

/* Cards / Widgets */
.card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
    color: white;
}

.card h3 { margin-top: 0; color: var(--text-main); }
.card p { color: var(--text-muted); }

/* Buttons in Cards */
.btn-action {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
}
.btn-primary { background: var(--success); color: white; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }

/* --- ZUSATZ FÜR UNTERSEITEN (Tabellen & Formulare) --- */

/* Transparente Eingabefelder (Glass Input) */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05); /* Sehr transparent */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box; /* Wichtig damit Padding nicht die Breite sprengt */
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Style für Labels */
label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Tabellen im Glass-Look */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: white;
}

th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons (Klein) */
.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    margin-right: 5px;
}
.btn-view { background: rgba(255, 255, 255, 0.2); color: white; }
.btn-delete { background: rgba(227, 6, 19, 0.2); color: #ffadad; border: 1px solid rgba(227, 6, 19, 0.5); }
.btn-delete:hover { background: var(--accent); color: white; }