﻿/* ========== BAS ========== */
html {
    font-size: 14px;
    scroll-behavior: smooth;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100%;
    margin-bottom: 60px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
}

/* ========== NAVBAR – Neutral & Proffsig ========== */
.navbar {
    background-color: #2f2f2f; /* Mörk men inte blå */
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f1f1f1 !important;
    text-decoration: none !important;
}

.navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none !important;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.05);
        color: #ffffff !important;
        text-decoration: none !important;
    }

.navbar-toggler {
    border-color: #e0e0e0;
}

/* ========== DROPDOWN ========== */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

    .dropdown-menu a {
        padding: 0.5rem 1rem;
        color: #212529;
        transition: background-color 0.2s ease-in-out;
        text-decoration: none !important;
    }

        .dropdown-menu a:hover {
            background-color: #f1f3f5;
        }

/* ========== KNAPPAR ========== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #6c7a89;
    border-color: #6c7a89;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #5d6b78;
        border-color: #5d6b78;
    }

.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 85, 102, 0.4);
    outline: none;
}

/* ========== FORMULÄR ========== */
.form-control,
.form-select {
    border-radius: 0.375rem;
}

.form-floating > .form-control::placeholder {
    color: #adb5bd;
    text-align: end;
}

.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ========== TABELLER ========== */
.table {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

    .table thead {
        background-color: #e9ecef;
    }

/* ========== FOOTER ========== */
footer {
    background-color: #f8f9fa;
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    padding: 1rem 0;
}

/* ========== LÄNKAR ========== */
/* ========== LÄNKAR (neutral och modern) ========== */
a {
    color: #3f4652; /* Mörkgrå-lila ton som passar mörk bakgrund */
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: #6c757d;
        text-decoration: underline;
    }

.text-primary {
    color: #444 !important;
}
