﻿/* Grundinställningar */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333333;
    background-color: #f2f2f2;
    padding-top: 75px;
}

/* Navigationsmeny - endast för icke-Bootstrap navbars */
nav:not(.navbar) {
    background-color: #003366;
    padding: 10px;
}

    nav:not(.navbar) a {
        color: #ffffff;
        text-decoration: none;
        margin: 0 15px;
    }

        nav:not(.navbar) a:hover {
            text-decoration: underline;
        }

/* Rubriker */
h1, h2, h3, h4, h5, h6 {
    color: #003366;
}

/* Länkar */
a {
    color: #003366;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Knappar */
button, .button {
    background-color: #003366;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    min-height: 44px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.15s ease;
}

    button:hover, .button:hover {
        background-color: #002244;
    }

/* Förbättrade Bootstrap-knappar */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.15s ease;
}

/* Sektioner */
section {
    padding: 20px;
    margin: 20px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

/* Förbättrade kort */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Förbättrade tabeller */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Tabellceller ärver bakgrundsfärg från raden */
.table tbody tr[style*="background-color"] td {
    background-color: inherit;
}

/* Förbättrad navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Bättre whitespace för main container (inte navbar) */
body > .container {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Fotnot */
footer {
    background-color: #003366;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Button sizing - Touch-friendly (min 44x44px) */
.btn-touch {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 12px 24px !important;
}

.btn-square-lg {
    width: 130px !important;
    height: 130px !important;
    min-width: 130px !important;
    min-height: 130px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    padding: 10px !important;
}

.btn-rect-md {
    width: 130px !important;
    height: 80px !important;
    min-width: 130px !important;
    min-height: 80px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    padding: 10px !important;
}

.btn-fixed-100 {
    width: 100px !important;
    min-width: 100px !important;
}

.btn-fixed-220 {
    width: 220px !important;
    min-width: 220px !important;
}

/* Table styling */
.table-lg {
    font-size: 20px;
}

/* Background colors */
.bg-pale-yellow {
    background-color: #fffacd;
}

.bg-row-alt {
    background-color: #f2f2f2;
}

/* Text styling */
.text-alert {
    color: orangered;
    font-weight: bold;
}

.bg-alert {
    background-color: tomato;
}

/* Alignment */
.valign-middle {
    vertical-align: middle;
}

/* Section dividers */
.border-section {
    border-top: 3px solid black;
    border-bottom: 3px double black;
}

/* Badge sizing */
.badge-lg {
    font-size: 24px;
}
