﻿.dashboard-grid {
    display: grid;
    gap: 1rem;
}

    /* Standard: 4 kort per rad */
    .dashboard-grid.four-column {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Alternativer */
    .dashboard-grid.two-column {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid.three-column {
        grid-template-columns: repeat(3, 1fr);
    }

/* Kortstil */
.dashboard-card {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    border-radius: 0.5rem;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0.25rem 0.4rem rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    overflow: hidden;
}

/* DARK MODE-tilpasning */
html[data-bs-theme='dark'] .dashboard-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

/* Hover-effekt */
.dashboard-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

html[data-bs-theme='dark'] .dashboard-card:hover {
    box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.15);
}

/* Header */
.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

/* Tittel */
.dashboard-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bs-primary);
    opacity: 0.85;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Verdi */
.dashboard-value {
    color: var(--bs-primary);
    position: relative;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
