﻿/* wwwroot/css/custom.css */

/* ===== Grundläggande sid-styling och typsnitt ===== */
html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa; /* Ljusgrå bakgrundsfärg */
    color: #212529; /* Mörk textfärg för bättre läsbarhet */
}

/* ===== Rubriker och länkar ===== */
h1, h2, h3, h4, h5, h6 {
    color: #343a40; /* En aning mjukare svart för rubriker */
}

a {
    color: #007bff;
    text-decoration: none;
}

    a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* ===== Knappar ===== */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

/* ===== Navigationsfält (Meny) ===== */
.navbar {
    background-color: #343a40 !important; /* Mörkgrå bakgrund för menyn */
}

.navbar-brand {
    font-weight: 600;
}

/* ===== Formulär ===== */
.form-control {
    border-radius: 0.5rem; /* Mjukt rundade hörn */
    border: 1px solid #ced4da;
}

    .form-control:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d; /* Grå färg för labels i formulär */
}


/* ===== Container och Sidfot ===== */
.container {
    max-width: 1140px;
}

.footer {
    background-color: #ffffff; /* Vit bakgrund för sidfoten */
    line-height: 60px;
}
/* ===== LANDNINGSSIDA STYLING ===== */

/* Hjälte-sektionen med bakgrundsbild */
.hero-section {
    position: relative;
    padding: 8rem 2rem;
    background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    overflow: hidden; /* För att overlayen ska hålla sig innanför */
}

    .hero-section h1 {
        color: #ffffff; /* Eller bara 'white' */
    }


/* Mörk overlay för att göra texten mer läsbar */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Innehållet som ligger ovanpå overlayen */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

    .hero-section .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }


/* Ikonerna i "Hur det fungerar"-sektionen */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #fff;
    background-color: #007bff; /* Samma som primärknappen */
    border-radius: 50%; /* Gör den rund */
}
/* ===== NY LAYOUT MED VÄNSTERMENY ===== */

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background-color: #212529; /* Mörkt tema */
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    padding-bottom: 1rem;
}

    .sidebar-brand:hover {
        color: #f8f9fa;
    }

.sidebar .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

    .sidebar .nav-link:hover {
        background-color: #343a40;
    }

.sidebar-footer {
    margin-top: auto; /* Knuffar ner footern till botten */
}

.main-content {
    flex-grow: 1; /* Tar upp resten av utrymmet */
    display: flex;
    flex-direction: column;
}

    .main-content main {
        flex-grow: 1;
    }
/* ===== VÄLKOMSTSIDA FÖR INLOGGADE ===== */

.welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Tar upp hela tillgängliga höjden */
}

.welcome-card {
    max-width: 600px;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.075);
}
/* ===== ACTION-KNAPPAR I SIDOMENYN ===== */

.action-buttons .btn {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    text-align: center;
}
/* ===== RESPONSIV DESIGN & HAMBURGERMENY ===== */

.mobile-header {
    display: none; /* Dold på stora skärmar */
    background-color: #212529;
    color: white;
    padding: 0.5rem 1rem;
    align-items: center;
    justify-content: space-between;
}

.hamburger-button {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
}

.desktop-brand {
    display: block; /* Visas på stora skärmar */
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

/* Media Query: Dessa regler gäller ENDAST för skärmar som är 992px breda eller smalare */
@media (max-width: 992px) {
    .mobile-header {
        display: flex; /* Visa mobil-headern */
    }

    .desktop-brand {
        display: none; /* Dölj stora loggan i sidomenyn */
    }

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 101;
        transform: translateX(-100%); /* Starta utanför skärmen */
        transition: transform 0.3s ease-in-out;
        padding-top: 4rem; /* Ge plats för mobil-headern */
    }

        .sidebar.is-open {
            transform: translateX(0); /* Glid in i bild */
        }

            .sidebar.is-open + .main-content + .sidebar-overlay {
                display: block; /* Visa den mörka overlayen när menyn är öppen */
            }

    .main-content {
        padding-top: 56px; /* Ge plats för den fasta mobil-headern */
    }
}
/* ===== PRISSIDA ===== */
.pricing-header {
    max-width: 700px;
}

.card-title.pricing-card-title {
    font-size: 2.5rem;
}