/* style.css – Globala stilar och variabler */

/* ---- Variabler ---- */
:root {
    --primary-blue: #2C5F9D; /* Modern kornblå */
    --primary-blue-dark: #1A3E6C; /* Mörkare blå för hover */
    --accent-light: #5B8BE5; /* Lättare blå accent */
    --text-color-dark: #3A414A; /* Mörkgrå för primär text */
    --text-color-medium: #6A7B8E; /* Mellangrå för subtil text */
    --text-color-light: #9AAAB9; /* Ljusgrå för extra subtil text */
    --background-light: #F8FAFC; /* Varm off-white/ljusgrå bakgrund */
    --content-background: #ffffff; /* Vitt för innehållsytor */
    --border-color: #E6EBF0; /* Ljusgrå för kanter */
    --sidebar-bg: #1A3E6C; /* Mörkblå sidebar (används i dashboard.css) */
    --sidebar-text: #E6EBF0; /* Ljus text i sidebar (används i dashboard.css) */
    --sidebar-active-bg: #2C5F9D; /* Aktiv länk bakgrund (används i dashboard.css) */
    --font-primary: 'Inter', sans-serif;
    --base-font-size: 1rem;
    --line-height: 1.6;
    --spacing-unit: 1rem; /* 16px */
    --border-radius: 6px;
    --box-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.08);
    --footer-height: 45px; /* Ny variabel för att definiera fotens höjd */
}

/* ---- Grundinställningar ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height);
    color: var(--text-color-dark);
    background-color: var(--background-light);
    font-weight: 400;
    margin: 0; 
    
    /* Globala inställningar för Sticky Footer */
    min-height: 100vh; 
    position: relative; 
    /* Lägg till padding längst ner för att förhindra att innehåll döljs bakom fixed footer */
    padding-bottom: var(--footer-height); 
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.2);
}

/* ---- Grundläggande Typografi ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: calc(var(--spacing-unit) * 1);
    line-height: 1.2;
}

p {
    margin-bottom: var(--spacing-unit);
    color: var(--text-color-medium);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Generella Knappar ---- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 0.9) calc(var(--spacing-unit) * 1.8);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.button-primary {
    background-color: var(--primary-blue);
    color: var(--content-background);
    box-shadow: 0 4px 10px rgba(44, 95, 157, 0.2);
}

.button-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(44, 95, 157, 0.3);
    text-decoration: none;
    color: var(--content-background);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    box-shadow: none;
}

.button-secondary:hover {
    background-color: rgba(44, 95, 157, 0.08);
    color: var(--primary-blue-dark);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ---- Sidfot (Fixed/Centrerad) ---- */
.site-absolute-footer {
    position: fixed; /* Ligger alltid i botten av skärmen */
    width: 100%;
    bottom: 0;
    left: 0;
    
    /* Centrera innehållet */
    text-align: center;
    
    /* Styling */
    height: var(--footer-height); /* Använder variabeln */
    background-color: var(--content-background); 
    border-top: 1px solid var(--border-color);
    color: var(--text-color-medium); 
    padding: 10px 0;
    
    /* Säkerställer att den ligger över annat innehåll */
    z-index: 100; 
}
