
/* =====================================
   MOLINOS.DK - VIDEO PORTAL
===================================== */

:root {
    --background: #0b1220;
    --header: #080e19;
    --sidebar: #101c2d;
    --panel: #17263a;
    --blue: #2385ca;
    --blue-light: #42a9ef;
    --text: #f3f6fa;
    --muted: #91a4ba;
    --border: #2b4059;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================================
   TOPHEADER
===================================== */

.portal-header {
    min-height: 95px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(110deg, #080e19, #152840);
    border-bottom: 2px solid #287db8;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.portal-brand a {
    color: white;
    text-decoration: none;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 3px;
}

.portal-brand a span {
    color: var(--blue-light);
}

.portal-brand p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 3px;
}

.portal-user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-user-info {
    display: flex;
    flex-direction: column;
    padding-right: 12px;
    border-right: 1px solid var(--border);
}

.portal-user-info span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.portal-user-info strong {
    color: white;
    font-size: 14px;
}

.portal-admin,
.portal-logout {
    padding: 10px 14px;
    border-radius: 7px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}

.portal-admin {
    background: #205f96;
}

.portal-admin:hover {
    background: #328ed0;
}

.portal-logout {
    background: #35465c;
}

.portal-logout:hover {
    background: #526780;
}

/* =====================================
   HOVEDOPBYGNING
===================================== */

.portal-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: calc(100vh - 145px);
    padding-bottom: 60px;
}

/* =====================================
   VENSTRE MENU
===================================== */

.portal-sidebar {
    flex: 0 0 245px;
    width: 245px;
    padding: 25px 14px;
    background: linear-gradient(180deg, #101c2d, #0d1726);
    border-right: 1px solid var(--border);
}

.sidebar-heading {
    padding: 0 12px 15px;
    color: #70b9e8;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

.sidebar-home,
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    margin-bottom: 5px;
    padding: 9px 12px;
    color: #c3d0df;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: all 0.2s ease;
}

.sidebar-home:hover,
.sidebar-menu a:hover {
    background: #203b59;
    border-color: #315c83;
    color: white;
    transform: translateX(3px);
}

.sidebar-menu a.sidebar-active,
.sidebar-home.sidebar-active {
    background: linear-gradient(100deg, #174c78, #237eb9);
    border-color: #4aa9e8;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 100, 180, 0.25);
}

.sidebar-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    background: #263c55;
    color: #b8dfff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.sidebar-active .sidebar-number {
    background: rgba(255,255,255,0.2);
    color: white;
}

.sidebar-icon {
    color: #62b5f5;
    font-size: 10px;
}

.sidebar-active .sidebar-icon {
    color: white;
}

.sidebar-label {
    flex: 1;
}

.sidebar-home span {
    font-size: 19px;
    color: #62b5f5;
}

.sidebar-divider {
    height: 1px;
    margin: 12px 5px 18px;
    background: var(--border);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
}

.portal-sidebar {
    flex: 0 0 245px;
    width: 245px;
}

.portal-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* =====================================
   HOVEDINDHOLD
===================================== */

.portal-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

main.video-side {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto;
    padding: 28px;
    background: linear-gradient(145deg, #192a40, #111e30);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.video-side h2 {
    margin: 0 0 25px;
    color: white;
    font-size: 25px;
    text-align: center;
}

/* =====================================
   FORSIDEVIDEO OG VIDEOAFSPILLER
===================================== */

.forside-video {
    max-width: 650px;
    margin: 20px auto;
}

.video-afspiller {
    max-width: 800px;
    margin: 20px auto;
}

.forside-video video,
.video-afspiller video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 300px);
    margin: 0 auto;
    background: black;
    border: 1px solid #405b78;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* =====================================
   VIDEOMENU
===================================== */

.video-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.video-menu a,
.hovedmenu a {
    display: inline-block;
    min-width: 115px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #286c43, #368b55);
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    border: 1px solid #58a875;
    border-radius: 7px;
    transition: 0.2s;
}

.video-menu a:hover,
.hovedmenu a:hover {
    background: #42a968;
    transform: translateY(-2px);
}

/* =====================================
   TILBAGEKNAP
===================================== */

.tilbage {
    margin: 0 0 20px;
}

.tilbage a,
.video-side > p a {
    display: inline-block;
    padding: 10px 17px;
    background: #354a64;
    color: white;
    text-decoration: none;
    border: 1px solid #526b88;
    border-radius: 7px;
    transition: 0.2s;
}

.tilbage a:hover,
.video-side > p a:hover {
    background: #4b6685;
}

/* =====================================
   LOGIN-STATUS
===================================== */

.login-status {
    max-width: 800px;
    margin: 15px auto 25px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.logget-ind {
    background: #e8f5e9;
    color: #256b35;
    border: 1px solid #b7dfbd;
}

.ikke-logget-ind {
    background: #eaf2fa;
    color: #244b70;
    border: 1px solid #c5d8eb;
}

.status-ikon {
    margin-right: 8px;
    font-weight: bold;
}

.login-status a {
    color: #1769aa;
    font-weight: bold;
    text-decoration: none;
    margin-left: 8px;
}

/* =====================================
   BESKEDER
===================================== */

.ingen-menu {
    padding: 15px;
    background: #332d20;
    color: #ffd27a;
    border: 1px solid #65512b;
    border-radius: 8px;
}

/* =====================================
   KONTAKTFORMULAR
===================================== */

.kontakt-side {
    max-width: 650px;
    margin-top: 25px;
}

.kontakt-side form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin-top: 25px;
}

.kontakt-side label {
    margin-top: 8px;
    font-weight: bold;
}

.kontakt-side input,
.kontakt-side textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #777;
    border-radius: 5px;
    font-size: 15px;
}

.kontakt-side textarea {
    min-height: 160px;
    resize: vertical;
}

.kontakt-side button {
    width: fit-content;
    padding: 10px 22px;
    margin-top: 10px;
    background: #237bb5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.kontakt-succes {
    color: #4caf50;
}

.kontakt-fejl {
    color: #ff6666;
}

/* =====================================
   FOOTER
===================================== */

.portal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    background: #080e19;
    border-top: 1px solid var(--border);
    color: #8194aa;
    font-size: 13px;
}

.portal-footer p {
    margin: 0;
}

.portal-footer span {
    padding: 0 8px;
    color: var(--blue-light);
}

/* =====================================
   TABLET
===================================== */

@media screen and (max-width: 850px) {
    .portal-header {
        justify-content: center;
        text-align: center;
    }

    .portal-sidebar {
        flex-basis: 190px;
        width: 190px;
    }

    .portal-content {
        padding: 12px;
    }

    main.video-side {
        padding: 18px;
    }
}

/* =====================================
   MOBIL
===================================== */

@media screen and (max-width: 600px) {
    .portal-header {
        padding: 15px 10px;
    }

    .portal-brand a {
        font-size: 28px;
    }

    .portal-user {
        justify-content: center;
    }

    .portal-layout {
        display: block;
    }

    .portal-sidebar {
        width: 100%;
        padding: 15px 10px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-heading {
        text-align: center;
    }

    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .sidebar-menu a {
        margin: 0;
        font-size: 12px;
    }

    .portal-content {
        padding: 10px;
    }

    main.video-side {
        margin: 5px auto;
        padding: 14px;
    }

    .video-side h2 {
        font-size: 20px;
    }

    .forside-video {
        max-width: 100%;
    }

    .video-afspiller {
        max-width: 100%;
    }
}
/* RET MENUEN TIL LODRET VENSTREMENU */

.portal-layout {
    display: flex !important;
    flex-direction: row !important;
}

.portal-sidebar {
    display: block !important;
    flex: 0 0 245px !important;
    width: 245px !important;
}

.sidebar-menu {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.sidebar-menu a {
    display: flex !important;
    width: 100% !important;
}