﻿:root {
    /* Färgpalett */
    --rz-primary: #669933;
    --rz-primary-hover: #496525;
    --rz-secondary: #FCE6CA;
    --rz-body-background-color: #FCE6CA;
    --rz-text-color: #1E1E1E;
    --rz-link-color: #009DE0;
    --rz-link-hover-color: #0075a8;
    --rz-button-background: #009DE0;
    --rz-button-color: #ffffff;
    --rz-button-hover-background: #0075a8;
    --rz-panel-background-color: var(--rz-secondary);
    --rz-grid-header-background: #F5F0E6;
    --rz-grid-header-color: var(--rz-text-color);
}

/* ----------------------------
   Allmänt
----------------------------- */
body {
    background-color: var(--rz-body-background-color);
    color: var(--rz-text-color);
    font-family: "Segoe UI", sans-serif;
    margin: 0;
}

/* Tar bort linjer mellan header/body/footer */
.rz-layout {
    border: none !important;
}

.rz-header,
.rz-body,
.rz-footer {
    border: none !important;
    box-shadow: none !important;
}

/* ----------------------------
   Header (RadzenHeader)
----------------------------- */
.rz-header {
    background-color: #669933;
    color: white;
    padding: 0.5rem 1rem;
}

    .rz-header .rz-label {
        color: white;
        font-size: 1.3rem;
        font-weight: 600;
    }

/* ----------------------------
   Sidebar och meny
----------------------------- */
.rz-sidebar {
    background-color: #669933 !important;
    color: white !important;
    width: 220px;
}

/* Menyval */
.rz-navigation-item {
    background-color: #669933 !important;
    color: white !important;
    border: none !important; /* Tar bort svarta linjer */
    border-radius: 0;
}

.rz-navigation-item-link {
    background-color: #669933 !important;
    color: white !important;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border: none !important;
    box-shadow: none !important;
}

.rz-navigation-item-icon {
    color: white !important;
    margin-right: 0.5rem;
}

.rz-navigation-item-text {
    color: white !important;
    font-weight: 500;
}

/* Hovereffekt */
.rz-navigation-item:hover,
.rz-navigation-item-link:hover {
    background-color: #496525 !important;
    color: #C4DF95 !important;
}

    .rz-navigation-item:hover .rz-navigation-item-icon,
    .rz-navigation-item:hover .rz-navigation-item-text {
        color: #C4DF95 !important;
    }

/* Aktiv menyval */
.rz-navigation-item.rz-state-active,
.rz-navigation-item.rz-state-active .rz-navigation-item-link {
    background-color: #496525 !important;
    color: #C4DF95 !important;
}

    .rz-navigation-item.rz-state-active .rz-navigation-item-icon,
    .rz-navigation-item.rz-state-active .rz-navigation-item-text {
        color: #C4DF95 !important;
    }

/* ----------------------------
   Toggle-knapp (RadzenSidebarToggle)
----------------------------- */
.rz-sidebar-toggle {
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
}

    .rz-sidebar-toggle .rz-button {
        background-color: transparent !important;
        color: white !important;
        border: none !important;
        box-shadow: none !important;
    }

    .rz-sidebar-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

/* ----------------------------
   Footer (RadzenFooter)
----------------------------- */
.rz-footer {
    background-color: #496525;
    color: white;
    padding: 1rem;
    text-align: center;
    border: none !important;
}

/* ----------------------------
   Knapp & komponenter
----------------------------- */
.rz-button,
.rz-button.rz-primary {
    background-color: var(--rz-button-background);
    color: var(--rz-button-color);
    border-color: var(--rz-button-background);
}

    .rz-button:hover,
    .rz-button.rz-primary:hover {
        background-color: var(--rz-button-hover-background);
        border-color: var(--rz-button-hover-background);
    }

.rz-panel .rz-panel-titlebar {
    background-color: var(--rz-primary);
    color: white;
}

.rz-datatable .rz-column-header {
    background-color: var(--rz-grid-header-background);
    color: var(--rz-grid-header-color);
}

.soft-card {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-card::before {
    content: "";
    background: url('/spindra.png') no-repeat center center;
    background-size: 180px;
    opacity: 0.07;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-card {
    position: relative;
    z-index: 1;
}

.text-primary {
    color: #222;
}

.text-secondary {
    color: #555;
}

.btn-primary {
    background-color: #6aa84f;
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.5s ease-in-out;
    }

.inline-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 8px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
}

.center-logo {
    display: block;
    margin: 2rem auto;
    max-width: 150px; /* Anpassa efter bildens form */
    height: auto;
    opacity: 0.95;
}

.subtext {
    color: #444;
    font-weight: normal;
    display: block;
    margin-top: 0.25rem;
}

a.rz-button.custom-hover,
a.rz-button.custom-hover:hover {
    font-size: 1.1rem;
}

a.rz-button.custom-hover:hover {
    background-color: #1a83b1 !important;
    color: white !important;
}

a.rz-link:hover .rz-link-text {
    text-decoration: none !important;
}
