:root {
    --bg-body: #162731;
    --bg-card: #274251;
    --bg-input: #223947;     /* Input fält bakgrund */
    --accent: #FBBF24;       /* Guld/Gul */
    --accent-hover: #D97706; /* dator hover */
    --accent-dark: #D97706;
    --text-main: #FFFFFF;
    /*--text-muted: #9CA3AF;*/
    --text-muted: #FFFFFF;
    --danger: #EF4444;       /* Röd */
    --success: #16A34A;      /* Grön */
    --neutral: #D1D5DB;      /* Grå/Vit text */
    --empty: #9CA3AF;        /* Grå ruta */
    --border: #516E80;
    --menu-bg: rgba(22,39,49);
    --menu-width: 280px;
    --modal-bg: rgba(22,39,49,0.99);
    --glow-color: rgba(56, 189, 248, 0.4); /* Ljusblå glow */
    --btn-text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
    --btn-second-text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
    --btn-emboss-with-glow:
            0 0 20px 4px var(--glow-color),
            0 4px 0 rgb(96, 64, 2);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
}

/* --- HEADER --- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrerar loggan horisontellt */
    padding: 20px;
    position: relative;
    min-height: 70px; /* Säkerställer att headern har en bra höjd */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;

    /* --- NYA RADER FÖR ATT JUSTERA POSITION --- */
    position: relative;
    top: 2px; /* Justera detta värde (t.ex. 2px, 4px, 6px) tills det ser perfekt ut */
}

.fat {
    font-weight: 700;
}
.cursive {
    font-style: italic;
}

.logo img {
    width: 180px;
    display: block; /* Viktigt! Tar bort osynligt mellanrum under bilden */
}

.menu-logo img {
    width: 100px;
    display: block; /* Viktigt! Tar bort osynligt mellanrum under bilden */
}

.menu-trigger {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--accent);
    background: none;
    border: none;
    font-size: 12px;
    z-index: 20; /* Se till att den ligger ovanpå om något krockar */
}

/* Hamburgare ikon med CSS */
.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: var(--accent);
    position: relative;
    margin-bottom: 4px;
}
.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background-color: var(--accent);
    position: absolute;
    left: 0;
}
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.logo span { color: var(--accent); }

/* --- MENY (SLIDE OUT) --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* Starta utanför bild */
    width: var(--menu-width);
    height: 100%;
    background: var(--menu-bg);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    border-right: 1px solid var(--border);
}

/* Aktivera meny */
.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-open .menu-sidebar { left: 0; }

.menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.menu-items {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--accent); /* Gul text som på bilden */
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border);
}
.menu-link:hover {
    background: rgba(251, 191, 36, 0.05);
    border-left-color: var(--accent);
}
.menu-link svg {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.menu-link img {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.action-btn {
    width: 100%;
    background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 0 #B45309;
    display:block;
    text-decoration:none;
    line-height: 20px;
}

/* --- HUVUDINNEHÅLL --- */
.container {
    margin: 0 auto;
}