/* ==========================================
   TYPSNITT
   ========================================== */

@font-face {
    font-family: "NittoSans";
    src: url('/assets/fonter/Nunito/NunitoSans-Regular.ttf') format('opentype');
}

@font-face {
    font-family: "NittoSans-Bold";
    src: url('/assets/fonter/Nunito/NunitoSans-Bold.ttf') format('opentype');
}

@font-face {
    font-family: "NittoSans-Sbold";
    src: url('/assets/fonter/Nunito/NunitoSans-SemiBold.ttf') format('opentype');
}

@font-face {
    font-family: "Nunito-Black";
    src: url('/assets/fonter/Nunito/Nunito-Black.ttf') format('opentype');
}

@font-face {
    font-family: "Nunito-BlackItalic";
    src: url('/assets/fonter/Nunito/NunitoSans-BlackItalic.ttf') format('opentype');
}

/* Typsnitt klasser */
.nunito-regular {
    font-family: "NittoSans", sans-serif !important;
    color: #00394f;
}

.nunito-bold, h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito-Black", sans-serif !important;
    color: #00394f !important;
}

.nunito-sbold {
    font-family: "NittoSans-Sbold", sans-serif !important;
    color: #00394f;
}

.nunito-black {
    font-family: "NittoSans-Black", sans-serif !important;
    color: #00394f;
}

p, label, strong, b {
    font-family: "NittoSans", sans-serif !important;
    color: #00394f !important;
}

.pointer {
    cursor: pointer;
}

.tagsupport {
    background-color: #FF9F1C !important;
    color: black !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-family: 'NittoSans-Bold' !important;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tagsupport:hover {
    background-color: #e68a00 !important;
}

/* ==========================================
   GRUNDLÄGGANDE LAYOUT
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: "NittoSans", sans-serif;
}

body {
    padding: 3vw;
    background-color: #00394f;
}

.navbar {
    background-color: #00394f !important;
}

footer {
    background-color: #00394f !important;
}

.mobile_footer_link {
    color: white !important;
}

.mobile_footer_link:hover {
    color: #C2E189 !important;
}

/* Ram container */
.frame-container {
    height: 100%;
    background: white;
    overflow: hidden;
}

/* Två-kolumn layout */
.split-layout {
    display: flex;
    height: 100%;
}

/* Vänster panel - Vit bakgrund */
.left-panel {
    flex: 1;
    background-color: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* Höger panel - Grön bakgrund */
.right-panel {
  flex: 1;
  background-color: #d9e5d6;
  padding: 3rem;
  display: grid;
  place-items: center;
  overflow-y: auto;
}

/* ==========================================
   INNEHÅLL
   ========================================== */

.content-wrapper {
    max-width: 500px;
    width: 100%;
}

#formen1 {
    max-width: 350px !important;
    margin: 0 auto;
    display: block;
}

.content-wrapper-aktivera {
    max-width: 800px;
    width: 100%;
}

.info-content {
    max-width: 500px;
    width: 100%;
}

/* Text styling */
h3 {
    font-family: "NittoSans-Bold", sans-serif;
    color: #210b2c;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-family: "NittoSans-Bold", sans-serif;
    color: #210b2c;
}

p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Logo styling */
.logo {
    max-width: 300px;
    margin-bottom: 2rem;
}


/* ==========================================
   FORMULÄR
   ========================================== */

.field {
    margin-bottom: 1.5rem;
}

.label {
    color: #00394f !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fa-info-circle {
    color: #00394f;
}

.input {
    border-radius: 4px;
    border: 1px solid #00394F;
}

.input:focus {
    border: 1px solid #00394F;
    border-color: #00394F;
    box-shadow: 0 0 0 0.125em #00394F;
}

.control.has-icons-left .icon {
    height: 2.5em;
}

.ns {
    user-select: none !important;
}


/* ==========================================
   KNAPPAR
   ========================================== */

.button {
    border: 2px solid transparent;
    user-select: none;
    border-radius: 25px;
    padding: 0 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-family: 'NittoSans-Bold', sans-serif !important;
}

.button:not(.is-outlined) {
    border-color: transparent !important;
}

/* Primary/Green button (is-primary, is-green, is-submit, is-save) */
.button.is-primary,
.button.is-green,
.button.is-submit,
.button.is-save,
.button-green {
    background-color: #47663d !important;
    color: white !important;
    border-color: #47663d !important;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(71, 102, 61, 0.25);
}

.button.is-primary:hover:not([disabled]),
.button.is-green:hover:not([disabled]),
.button.is-submit:hover:not([disabled]),
.button.is-save:hover:not([disabled]),
.button-green:hover {
    background-color: #3d5033 !important;
    border-color: #7EC10A !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 102, 61, 0.35);
}

/* Info/Blue button */
.button.is-info {
    background-color: #007a96 !important;
    color: white !important;
    border-color: #007a96 !important;
}

.button.is-info:hover:not([disabled]) {
    background-color: #00394F !important;
    border-color: #00394F !important;
    color: white !important;
}

.button.is-info.is-outlined {
    background-color: transparent !important;
    border-color: #007a96 !important;
    color: #007a96 !important;
}

.button.is-info.is-outlined:hover:not([disabled]) {
    background-color: #007a96 !important;
    border-color: #007a96 !important;
    color: white !important;
}

/* LAR button */
.button.is-lar {
    background-color: #D9E5D6 !important;
    color: #00394F !important;
    border-color: #D9E5D6 !important;
}

.button.is-lar:hover:not([disabled]) {
    background-color: #007a96 !important;
    border-color: #007a96 !important;
    color: white !important;
}

.button.is-lar:focus:not([disabled]) {
    border-color: #c4d7c0 !important;
    box-shadow: 0 0 0 0.125em rgba(0, 0, 0, 0.25) !important;
}

.button.is-lar:active:not([disabled]) {
    background-color: #b8ceb3 !important;
    border-color: #c4d7c0 !important;
}

.button.is-lar.is-outlined {
    background-color: transparent !important;
    border-color: #c4d7c0 !important;
    color: #00394F !important;
}

.button.is-lar.is-outlined:focus:not([disabled]) {
    border-color: #c4d7c0 !important;
    box-shadow: 0 0 0 0.125em rgba(0, 0, 0, 0.25) !important;
}

/* Kartläggning button */
.button.is-kartlaggning {
    background-color: #00394F !important;
    color: white !important;
    border-color: #00394F !important;
}

.button.is-kartlaggning:hover:not([disabled]) {
    background-color: #002f42 !important;
    border-color: #002f42 !important;
}

.button.is-kartlaggning:focus:not([disabled]) {
    border-color: #002f42 !important;
    box-shadow: 0 0 0 0.125em rgba(0, 57, 79, 0.25) !important;
}

.button.is-kartlaggning:active:not([disabled]) {
    background-color: #002535 !important;
    border-color: #002535 !important;
}

/* Validering button */
.button.is-validering {
    background-color: #007a96 !important;
    color: white !important;
    border-color: #007a96 !important;
}

.button.is-validering:hover:not([disabled]) {
    background-color: #006685 !important;
    border-color: #006685 !important;
}

.button.is-validering:focus:not([disabled]) {
    border-color: #006685 !important;
    box-shadow: 0 0 0 0.125em rgba(0, 122, 150, 0.25) !important;
}

.button.is-validering:active:not([disabled]) {
    background-color: #005974 !important;
    border-color: #005974 !important;
}

/* Danger/Warning button */
.button.is-danger:hover:not([disabled]) {
    border-color: #FF9F1C !important;
}

.button.is-warning:hover:not([disabled]) {
    border-color: #7EC10A !important;
}

/* Gray button */
.button.is-gray {
    background-color: #5a554e !important;
    color: white !important;
    border-color: #5a554e !important;
}

/* Outlined variants */
.button-green.is-outlined {
    background-color: transparent !important;
    border: 2px solid #47663d !important;
    color: #47663d !important;
}

.button-green.is-outlined:hover {
    background-color: #47663d !important;
    color: white !important;
}

/* Icon spacing */
.button .icon {
    color: white !important;
}

.button .icon:first-child:not(:last-child) {
    margin-right: 2em !important;
    margin-left: 0 !important;
}

.button .icon:last-child:not(:first-child) {
    margin-right: 0 !important;
    margin-left: 2em !important;
}

.button .icon:first-child:last-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Stretched buttons layout */
.is-streched-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.is-streched-buttons > * {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    margin-right: 1em;
}

.is-streched-buttons > *:last-child {
    margin-right: 0;
}


/* ==========================================
   LÄNKAR
   ========================================== */

.link {
    color: #363636;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link:hover {
    color: #47663d;
}

.link-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}


/* ==========================================
   FLIKAR (TABS)
   ========================================== */

.tabs.is-boxed li.is-active a {
    background-color: #47663d;
    border-color: #47663d;
    color: white;
    border-bottom-color: transparent;
}

.tabs:not(:last-child) {
    margin-bottom: 0;
}

.tabs.is-boxed li.is-active a .icon,
.tabs.is-boxed li.is-active span {
    color: white !important;
}

.tabs.is-boxed li a {
    transition: all 0.2s ease;
    border-radius: 4px 4px 0 0;
}

.tabs.is-boxed li a:hover {
    background-color: rgba(71, 102, 61, 0.1);
}

.tabs.is-boxed a {
    border-bottom-width: 1px;
}

.is-active a:hover {
    background-color: inherit !important;
}

/* Tab innehåll */
.tab-content {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   HJÄLP-BOX
   ========================================== */

.help-text-box {
    background: #f0f7ff;
    border-left: 3px solid #007a96;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.help-text-box .icon {
    color: #007a96;
}


/* ==========================================
   SUCCESS-BOX
   ========================================== */

.success-box {
    max-width: 550px;
    margin: 0 auto;
}

.success-icon {
    color: #47663d !important;
}


/* ==========================================
   NOTIFIKATIONER
   ========================================== */

.fixed-notification-container {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    width: 90%;
    max-width: 500px;
    animation: slideInDown 0.4s ease-out;
}

.zindex {
    z-index: 99;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.fixed-notification-container .notification {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
    position: relative;
}

.fixed-notification-container .notification.is-info {
    background-color: #f0f7ff;
    border-left: 4px solid #007a96;
}

.fixed-notification-container .notification.is-danger {
    background-color: #C81D25 !important;
    border-left: 4px solid #8b0f17;
    color: white !important;
}

.fixed-notification-container .notification.is-danger b, .fixed-notification-container .notification.is-danger p {
     color: white !important;
}

.fixed-notification-container .notification.is-warning {
    background-color: #ffebd1;
    border-left: 4px solid #ffc576;
}

.fixed-notification-container .notification.is-success {
    background-color: #edf7ed;
    border-left: 4px solid #47663d;
}

.fixed-notification-container .delete {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.fixed-notification-container .delete:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}


/* ==========================================
   RESPONSIV DESIGN - MOBIL
   ========================================== */

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .split-layout {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 2rem 1.5rem;
        display: inline;
    }

    .frame-container {
        overflow-y: auto;
    }

    h3 {
        font-size: 1.5rem;
    }

    .logo {
        max-width: 250px;
    }

    .tab-content {
        padding: 1.25rem 0.75rem;
    }

    .tabs.is-boxed li a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .fixed-notification-container {
        width: 95%;
        max-width: none;
        top: 20%;
        transform: translate(-50%, 0);
    }

    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translate(-50%, -20px);
        }
        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    .fixed-notification-container .notification {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .fixed-notification-container .delete {
        width: 24px;
        height: 24px;
    }
}


/* ==========================================
   RESPONSIV DESIGN - TABLET
   ========================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding: 2vw;
    }

    .left-panel, .right-panel {
        padding: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .logo {
        max-width: 280px;
    }

    .fixed-notification-container {
        max-width: 450px;
    }
}


/* ==========================================
   RESPONSIV DESIGN - DESKTOP
   ========================================== */

@media (min-width: 1281px) {
    body {
        padding: 6vw;
    }

    .logo {
        max-width: 350px;
    }
}


/* ==========================================
   AKTIVERA-SIDA SPECIFIKT
   ========================================== */

/* Aktivera content kan bli långt - tillåt scroll */
.aktivera-content {
    max-height: 100%;
}

/* Checkbox styling för aktivera-sidan */
.p-aktivera .checkbox span.checkmark {
    top: 0 !important;
}

.p-aktivera .choosepassword {
    margin-top: 15px;
}

.p-aktivera .input[disabled] {
    border-color: #b5b5b5;
    background-color: white;
    color: darkgray !important;
}

.p-aktivera .pnrlabel {
    margin-bottom: 2px;
}

.p-aktivera #kön {
    background-color: white;
}


/* ==========================================
   GAMLA KLASSER (för bakåtkompatibilitet)
   ========================================== */

.blacklink {
    color: rgb(54, 54, 54) !important;
}

.blacklink:hover {
    color: #47663d !important;
}

.form-header {
    margin-bottom: 1.5rem;
}


/* ==========================================
    TOOLTIP
========================================== */
[data-tooltip]:not(.is-loading)::before {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 99999;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    background: #363636;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

[data-tooltip].has-tooltip-active:not(.is-loading)::before {
    opacity: 1;
}

[data-tooltip].has-tooltip-top::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
}
