/* ================================
   Grundlayout för Kassabok
   ================================ */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    margin: 0;
    margin-bottom: 0; /* befintlig bottenmarginal behålls */
    background: #fafafa;
}

/* Sidrubriker */

h1,
h2,
h3 {
    color: #333;
    margin-bottom: 0.6rem;
}

/* Länkar */

a {
    color: #0078d4;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Knappar */

.btn {
    display: inline-block;
    padding: 6px 12px;
    background: #0078d4;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background: #005ea0;
        text-decoration: none;
    }

    /* Fokus-stilar (befintlig) */

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
        outline: none;
    }

/* Tabeller */

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    background: #fff;
}

th,
td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

thead th {
    background: #f0f0f0;
    border-bottom: 2px solid #ccc;
}

/* Felmeddelanden */

.error {
    color: #b00020;
    background: #fde8e8;
    border: 1px solid #e8a5a5;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Formulär */

form div {
    margin-bottom: 0.75rem;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    max-width: 500px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button,
input[type="submit"] {
    padding: 6px 12px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    button:hover,
    input[type="submit"]:hover {
        background: #005ea0;
    }

/* Mindre helpers */

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #eee;
}

.top-bar-left {
    font-weight: bold;
}

.top-bar-right a {
    margin-left: 0.5rem;
}

.app-header-company {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer {
    /* ingen fixed-positionering */
    /* vi låter flex-layouten + mt-auto sköta placeringen */
    font-size: 0.9rem;
}

/* Landing page */

.landing-hero {
    min-height: calc(100vh - 72px); /* tar höjd för navbar */
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.25), transparent 55%), radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.20), transparent 55%), linear-gradient(135deg, #020617, #020617);
    color: #f9fafb;
}

.landing-pill {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.landing-highlight {
    background: linear-gradient(120deg, #a855f7, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-cta {
    padding-inline: 2.5rem;
}

.landing-secondary {
    border-color: rgba(148, 163, 184, 0.8);
    color: #e5e7eb;
}

    .landing-secondary:hover {
        background: rgba(15, 23, 42, 0.6);
        color: #f9fafb;
    }

.landing-card {
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.75rem;
    color: #e5e7eb;
    backdrop-filter: blur(18px);
}

.landing-card-header .badge.bg-success-subtle {
    background-color: rgba(22, 163, 74, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.landing-stat {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.7);
}

.landing-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.landing-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.landing-stat-sub {
    font-size: 0.8rem;
    color: #9ca3af;
}

.landing-mini-table {
    border-radius: 1rem;
    border: 1px solid rgba(55, 65, 81, 0.8);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.9rem;
}

.landing-mini-table-header,
.landing-mini-row,
.landing-mini-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
}

.landing-mini-table-header {
    background: rgba(15, 23, 42, 0.95);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
}

.landing-mini-row:nth-child(even) {
    background: rgba(15, 23, 42, 0.7);
}

.landing-mini-footer {
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Feature cards */

.feature-card {
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    background: #0f172a;
    color: #e5e7eb;
    border: 1px solid rgba(30, 64, 175, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.feature-icon {
    font-size: 2rem;
}

@media (max-width: 991.98px) {
    .landing-hero {
        min-height: auto;
        padding-top: 4rem;
    }
}

/* Gäller bara på startsidan, där body har klassen landing-page */
body.landing-page {
    background-color: #020617;
}

/* Ta bort extra padding / ljus känsla runt landing-ytan */
body.landing-page main {
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}

/* Låt landing-ytan gå kant-till-kant */
body.landing-page .container {
    max-width: 1200px; /* eller 100% om du vill HELT fullbredd */
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

/* Ta bort extra padding som kommer från .pb-3 runt RenderBody */
body.landing-page .container > .pb-3 {
    padding: 0;
}

