/* =========================================================
   MIKKELMUS UDSTILLING
   16:9 LANDSCAPE
   ========================================================= */


/* =========================================================
   BASIS
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    background: #f4f5f7;
    color: #222;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    width: 100vw;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: #f4f5f7;
}

.login-box {
    width: 460px;
    max-width: 90vw;

    padding: 40px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.10);
}

.login-header {
    margin-bottom: 30px;

    text-align: center;
}

.login-header h1 {
    margin: 0;

    font-size: 32px;
    font-weight: 700;

    color: #1f2937;
}

.login-header p {
    margin: 6px 0 0;

    color: #6b7280;
}


/* =========================================================
   FORMULARER
   ========================================================= */

.form-card {
    width: 100%;
    max-width: 1200px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-card h2 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;

    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 16px;

    outline: none;
}

.form-group input[type="file"] {
    width: 100%;

    padding: 12px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4b5563;

    box-shadow:
        0 0 0 3px rgba(75, 85, 99, 0.10);
}

.form-group textarea {
    min-height: 130px;

    resize: vertical;
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.form-help {
    margin-top: 7px;

    font-size: 13px;

    color: #6b7280;
}

.checkbox-label {
    display: flex !important;
    align-items: center;

    gap: 10px;

    min-height: 46px;

    font-weight: 400 !important;

    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 19px;
    height: 19px;

    margin: 0;
}

.form-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    padding-top: 8px;
}


/* =========================================================
   KNAPPER
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 17px;

    border: 0;
    border-radius: 6px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.btn-primary {
    background: #1f2937;
    color: #ffffff;
}

.btn-primary:hover {
    background: #111827;
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-success {
    background: #166534;
    color: #ffffff;
}

.btn-warning {
    background: #92400e;
    color: #ffffff;
}

.btn-danger {
    background: #991b1b;
    color: #ffffff;
}

.btn-full {
    width: 100%;
}

.btn-logout {
    background: #374151;
    color: #ffffff;
}

.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;

    cursor: not-allowed;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    max-width: 1200px;

    margin-bottom: 22px;

    padding: 13px 16px;

    border-radius: 6px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;

    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #166534;

    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;

    border: 1px solid #fde68a;
}


/* =========================================================
   ADMIN HEADER
   ========================================================= */

.admin-header {
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    background: #1f2937;
    color: #ffffff;
}

.admin-header-left {
    display: flex;
    align-items: baseline;

    gap: 16px;
}

.admin-logo {
    font-size: 24px;
    font-weight: 700;
}

.admin-subtitle {
    font-size: 14px;

    color: #cbd5e1;
}

.admin-header-right {
    display: flex;
    align-items: center;

    gap: 22px;
}

.admin-user {
    display: flex;
    flex-direction: column;

    text-align: right;
}

.admin-user-name {
    font-weight: 600;
}

.admin-user-role {
    font-size: 12px;

    color: #cbd5e1;
}


/* =========================================================
   ADMIN LAYOUT
   ========================================================= */

.admin-wrapper {
    display: flex;

    min-height:
        calc(100vh - 78px);
}


/* =========================================================
   ADMIN SIDEBAR
   ========================================================= */

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;

    padding: 28px 14px;

    background: #ffffff;

    border-right:
        1px solid #e5e7eb;
}

.nav-section {
    margin: 28px 13px 9px;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    color: #9ca3af;
}

.nav-item {
    display: block;

    padding: 11px 13px;

    margin-bottom: 5px;

    border-radius: 6px;

    color: #374151;
}

.nav-item:hover {
    background: #f3f4f6;
}

.nav-item.active {
    background: #1f2937;

    color: #ffffff;
}


/* =========================================================
   ADMIN MAIN
   ========================================================= */

.admin-main {
    flex: 1;

    min-width: 0;

    padding: 34px 38px;

    background: #f4f5f7;
}

.content-header {
    max-width: 1600px;

    margin-bottom: 28px;
}

.content-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.content-header h1 {
    margin: 0 0 5px;

    font-size: 30px;

    color: #111827;
}

.content-header p {
    margin: 0;

    color: #6b7280;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-cards {
    width: 100%;
    max-width: 1600px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.admin-card {
    display: flex;
    flex-direction: column;

    min-height: 185px;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.admin-card-title {
    margin-bottom: 9px;

    font-size: 21px;
    font-weight: 700;

    color: #1f2937;
}

.admin-card-description {
    flex: 1;

    color: #6b7280;
}

.admin-card-link {
    margin-top: 20px;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   SLIDES ADMIN
   ========================================================= */

.slides-grid {
    width: 100%;
    max-width: 1700px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(300px, 1fr));

    gap: 24px;
}

.slide-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.slide-image-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #ffffff;
}

.slide-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    background: #ffffff;
}

.slide-status {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-inactive {
    background: #e5e7eb;
    color: #4b5563;
}

.slide-card-body {
    padding: 20px;
}

.slide-title {
    margin: 0 0 16px;

    font-size: 20px;
}

.slide-meta {
    display: grid;

    gap: 7px;
}

.slide-meta-row {
    display: grid;

    grid-template-columns:
        120px 1fr;

    gap: 12px;

    font-size: 14px;
}

.slide-meta-label {
    font-weight: 600;

    color: #4b5563;
}

.slide-comment {
    margin-top: 18px;

    padding: 14px;

    background: #f9fafb;

    border-radius: 6px;
}

.slide-card-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}


/* =========================================================
   TABELLER
   ========================================================= */

.table-wrapper {
    width: 100%;
    max-width: 1700px;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 13px 15px;

    text-align: left;
    vertical-align: middle;

    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #f9fafb;

    color: #374151;

    font-weight: 700;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.table-subtext {
    margin-top: 3px;

    font-size: 12px;

    color: #6b7280;
}


/* =========================================================
   EMPTY STATE ADMIN
   ========================================================= */

.empty-state {
    max-width: 1200px;

    padding: 55px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 20px;

    color: #6b7280;
}


/* =========================================================
   LOGS
   ========================================================= */

.log-action {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 5px;

    background: #f3f4f6;

    font-size: 12px;
    font-weight: 700;
}

.log-description {
    min-width: 280px;

    line-height: 1.45;
}

.log-ip {
    display: inline-block;

    padding: 4px 7px;

    background: #f3f4f6;

    border-radius: 4px;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 12px;
}

.log-footer {
    margin-top: 15px;

    padding: 10px 4px;

    font-size: 13px;

    color: #6b7280;
}


/* =========================================================
   OFFENTLIG SKÆRM
   HEADER + 16:9 SLIDE + FOOTER
   ========================================================= */

.screen-page {
    width: 100vw;
    height: 100vh;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #000000;
}


/* =========================================================
   SCREEN HEADER
   ========================================================= */

.screen-header {
    flex: 0 0 72px;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 40px;

    background: #1f2937;
    color: #ffffff;
}

.screen-header-text {
    font-size: 26px;
    font-weight: 700;

    text-align: center;
}


/* =========================================================
   SCREEN MAIN
   HVID BAGGRUND
   ========================================================= */

.screen-main {
    flex: 1;

    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   16:9 CANVAS
   HVID BAGGRUND
   ========================================================= */

.screen-canvas {
    position: relative;

    height: 100%;

    aspect-ratio: 16 / 9;

    max-width: 100%;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   SLIDER
   HVID BAGGRUND
   ========================================================= */

.info-slider {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   SCREEN SLIDE
   ========================================================= */

.screen-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    background: #ffffff;

    transition:
        opacity 0.8s ease;
}

.screen-slide.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   SCREEN IMAGE
   ========================================================= */

.screen-slide-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #ffffff;
}


/* =========================================================
   INGEN SLIDES
   ========================================================= */

.screen-empty {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5%;

    text-align: center;

    color: #1f2937;

    background: #ffffff;
}

.screen-empty h1 {
    margin: 0 0 10px;

    font-size: 44px;

    color: #1f2937;
}

.screen-empty p {
    margin: 0;

    font-size: 21px;

    color: #4b5563;
}


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

.screen-footer {
    flex: 0 0 52px;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 40px;

    background: #1f2937;
    color: #ffffff;
}

.screen-footer-text {
    font-size: 17px;

    text-align: center;
}


/* =========================================================
   MINDRE ADMIN SKÆRME
   ========================================================= */

@media (max-width: 1400px) {

    .slides-grid {
        grid-template-columns:
            repeat(2, minmax(300px, 1fr));
    }

    .dashboard-cards {
        grid-template-columns:
            repeat(2, minmax(260px, 1fr));
    }
}


/* =========================================================
   SMÅ ADMIN SKÆRME
   ========================================================= */

@media (max-width: 1000px) {

    .admin-sidebar {
        width: 210px;
    }

    .admin-main {
        padding: 28px 26px;
    }

    .slides-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 900px;
    }
}