/* /var/www/nekoma/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* --- NEUE FARBPALETTE (Industrial Night / Red Glow Theme) --- */
    --c-bg-main:      #081424; /* Tiefes Nachtblau */
    --c-bg-card:      #0E2A44; /* Stahlblau (Cards/Sektionen) */
    --c-border-soft:  #123C63; /* Soft Border / Lines */

    --c-text-main:    #E6EAF0; /* Standard Text */
    --c-text-muted:   #9FB0C2; /* Muted Text */
    --c-white:        #FFFFFF;

    --c-primary:      #E33A2C; /* CTA / Buttons */
    --c-primary-hover:#B31217; /* Hover/Active */
    --c-primary-dark: #7A0D10; /* Dark Red */

    --c-accent:       #FF8A3D; /* Glow Orange */
    --c-accent-soft:  #FFC48A; /* Soft Glow */

    /* --- FUNKTIONALE MAPPINGS (kompatibel zu deinem bisherigen Code) --- */
    --c-deep-space:   var(--c-bg-main);
    --c-steel-blue:   var(--c-bg-card);
    --c-tea-green:    var(--c-border-soft); /* früher Avatar/Light – jetzt kühles Highlight */
    --c-light-yellow: var(--c-bg-main);
    --c-raspberry:    var(--c-primary);

    --header-height: 70px;
    --radius-card: 12px;

    /* Schatten etwas cleaner / weniger “berry”-heavy */
    --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.38);
}

body {
    /* --- HINTERGRUND KONFIGURATION --- */
    background-color: var(--c-bg-main);
    background-image: url('../images/background/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* --- LAYOUT SETTINGS --- */
    margin: 0;
    padding-top: var(--header-height);
    font-family: 'Roboto', sans-serif;
    color: var(--c-text-main);
    min-height: 100vh;
}

/* --- TOP NAVIGATION BAR --- */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.nav-left { display: flex; align-items: center; gap: 20px; }

.burger-btn {
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--c-text-main);
    padding: 5px;
}

.brand-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: bold; font-size: 1.2rem;
    text-decoration: none;
    color: var(--c-text-main);
}
.brand-logo img { height: 35px; }

.nav-right { display: flex; align-items: center; gap: 15px; }
.user-badge {
    text-align: right;
    font-size: 0.9rem;
    color: var(--c-text-main);
}

.avatar-circle {
    width: 40px; height: 40px;
    background-color: rgba(18, 60, 99, 0.55); /* border-soft als “Glass Tint” */
    color: var(--c-text-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    border: 1px solid rgba(230, 234, 240, 0.18);
}

/* --- SLIDE-OUT MENU (DRAWER) - CLEAR GLASS VERSION --- */
.nav-drawer {
    position: fixed;
    top: var(--header-height);
    left: -280px;
    width: 280px;
    height: calc(100vh - var(--header-height));

    /* Glass + bessere Lesbarkeit */
    background-color: rgba(8, 20, 36, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-right: 1px solid rgba(18, 60, 99, 0.55);

    transition: left 0.3s ease-in-out;
    z-index: 999;
    padding: 20px 0;
    box-shadow: 6px 0 26px rgba(0,0,0,0.55);
}

.nav-drawer.open { left: 0; }

.nav-drawer ul { list-style: none; padding: 0; margin: 0; }

.nav-drawer li a {
    display: block;
    padding: 15px 25px;
    color: rgba(230, 234, 240, 0.72);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.nav-drawer li a:hover {
    background-color: rgba(18, 60, 99, 0.22);
    color: var(--c-white);
    border-left-color: var(--c-primary);
}

.nav-drawer .menu-category {
    padding: 20px 25px 5px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(159, 176, 194, 0.9);
    letter-spacing: 1px;
}

/* OVERLAY */
.overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 20, 36, 0.72);
    z-index: 900;
    display: none;
}
.overlay.active { display: block; }

/* --- MAIN CONTENT --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* --- STANDARD KARTEN (heller Inhalt für Listen/Dashboard) --- */
.card {
    background: rgba(230, 234, 240, 0.96);
    border-radius: var(--radius-card);
    padding: 25px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    color: #0B1622;
}

/* Optional: Tabellen/Listen in Cards etwas cleaner */
.card hr { border: none; border-top: 1px solid rgba(18, 60, 99, 0.18); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    padding: 20px;
    border-radius: var(--radius-card);
    color: var(--c-text-main);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(18, 60, 99, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.stat-card h3 { margin: 0 0 5px 0; font-size: 0.9rem; opacity: 0.9; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; }

/* FARB-HELFER */
.bg-raspberry { background-color: var(--c-primary); }
.bg-steel     { background-color: rgba(14, 42, 68, 0.78); }
.bg-dark      { background-color: rgba(8, 20, 36, 0.82); }
.bg-light     { background-color: rgba(18, 60, 99, 0.65); color: var(--c-text-main) !important; }

/* BUTTONS & TABELLEN */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
    background: var(--c-primary);
    color: var(--c-white);
}
.btn-primary:hover {
    background: var(--c-primary-hover);
    box-shadow: 0 0 18px rgba(227, 58, 44, 0.28);
    transform: translateY(-1px);
}

.app-table { width: 100%; border-collapse: collapse; }
.app-table th {
    text-align: left;
    padding: 10px;
    color: #0E2A44;
    border-bottom: 1px solid rgba(18, 60, 99, 0.18);
}
.app-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(18, 60, 99, 0.10);
    color: #162433;
}

/* --- GLASS FORMULAR DESIGN --- */
.glass-card {
    background: rgba(8, 20, 36, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(18, 60, 99, 0.55);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    color: var(--c-text-main);
}

.glass-header {
    border-bottom: 1px solid rgba(18, 60, 99, 0.45);
    margin-bottom: 30px;
    padding-bottom: 15px;
}
.glass-header h2 { margin: 0; font-weight: 300; letter-spacing: 1px; }

/* Grid System für Formulare */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.form-full-width { grid-column: 1 / -1; }

/* Input Styles */
.form-group {
    position: relative;
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(159, 176, 194, 0.95);
    margin-bottom: 8px;
    font-weight: 500;
}

.chic-input {
    width: 100%;
    background: rgba(8, 20, 36, 0.35);
    border: 1px solid rgba(18, 60, 99, 0.55);
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--c-text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.chic-input:focus {
    outline: none;
    border-color: rgba(227, 58, 44, 0.85);
    background: rgba(8, 20, 36, 0.55);
    box-shadow: 0 0 0 4px rgba(227, 58, 44, 0.12);
}

textarea.chic-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Secondary Button für Glass Card */
.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(18, 60, 99, 0.75);
    color: rgba(230, 234, 240, 0.9);
}
.btn-secondary:hover {
    background: rgba(18, 60, 99, 0.22);
    color: var(--c-white);
}
