:root {
    --primary-color: #2c3e50;
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-color: #333333;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header og Navigasjon */
header {
    background-color: var(--surface-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* Hovedcontainer */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Skjemaer */
form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

input[type="text"], input[type="number"] {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

/* Tabeller */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-color);
}

/* Slide-in Handlekurv */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--surface-color);
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 2rem;
    z-index: 1000;
}

.cart-drawer.open {
    right: 0;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--primary-color);
    color: white;
    transition: left 0.3s ease;
    z-index: 2000;
    padding: 1.5rem;
}
.admin-sidebar.open { left: 0; }
.admin-sidebar a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.1); }
.hamburger {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1500;
}
.btn-edit { color: #3498db; text-decoration: none; margin-right: 10px; font-weight: bold; }
.btn-delete { color: #e74c3c; text-decoration: none; font-weight: bold; }

/* Legg til padding på container hvis sidebar er åpen (valgfritt) */
@media (min-width: 1000px) {
    .container { margin-left: auto; margin-right: auto; }
}