
/* --- base/_variables.css --- */
:root {
    /* Färger */
    --bg-body: #f4f6f9;       /* Ljusgrå bakgrund (SaaS standard) */
    --bg-card: #ffffff;
    
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    
    --primary: #1a1a1a;       /* Solfilmskompaniet Svart */
    --accent: #3498db;        /* Länkblå */
    
    /* Statusfärger */
    --status-new: #3498db;    /* Blå */
    --status-pending: #f1c40f; /* Gul */
    --status-success: #2ecc71; /* Grön */
    --status-error: #e74c3c;   /* Röd */
    --status-gray: #95a5a6;
    
    /* Mått */
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* --- base/_reset.css --- */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3 { margin-top: 0; font-weight: 600; }
a { text-decoration: none; color: inherit; }
/* --- components/_cards.css --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.card-header h2 { margin: 0; font-size: 1.2rem; }
/* --- components/_buttons.css --- */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: #000; }

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}
/* --- components/_tables.css --- */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

tbody tr:hover { background-color: #fcfcfc; }
/* --- components/_badges.css --- */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
}

.badge-blue { background: var(--status-new); }
.badge-yellow { background: var(--status-pending); color: #444; }
.badge-green { background: var(--status-success); }
.badge-red { background: var(--status-error); }
.badge-gray { background: var(--status-gray); }
/* --- sections/_header.css --- */
.top-bar {
    background: #ffffff;
    color: #333333;
    padding: 0 30px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eaeaea;
    position: relative; /* For mobile menu positioning */
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #333333;
}

.nav-link {
    color: #555555;
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .menu {
        display: none; /* Dold som standard på mobil */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eaeaea;
        z-index: 1000;
    }
    
    .menu.active {
        display: flex; /* Visas när hamburgerikonen klickas */
    }
    
    .nav-link {
        margin: 0;
        padding: 15px 30px;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}
/* --- sections/_layout.css --- */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Vänster del bredare än höger */
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}
/* --- pages/_order-view.css --- */
/* Order View Layout */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Info till vänster, Actions till höger */
    gap: 20px;
}

.info-group { margin-bottom: 15px; }
.info-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 3px; }
.info-value { font-size: 1rem; color: var(--text-main); }

.product-list { width: 100%; border-collapse: collapse; margin-top: 10px; }
.product-list th { background: #f9f9f9; font-size: 0.85rem; text-align: left; padding: 10px; }
.product-list td { padding: 10px; border-bottom: 1px solid #eee; }

.action-box {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.action-btn-large {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-print-pick { background: #f1c40f; color: #333; } /* Gul */
.btn-print-pick:hover { background: #f39c12; }

.btn-create-label { background: #3498db; color: white; } /* Blå */
.btn-create-label:hover { background: #2980b9; }