/* Generic_Screens — login + landing chrome.
   De mørke LED-kiosk-sider har deres egen inline-styling. */

:root {
    --c-primary: #3D65D7;
    --c-primary-dark: #2B4BA8;
    --c-success: #2D9D4D;
    --c-danger: #DD2D2D;
    --c-warning: #F0A500;
    --c-text: #1A2838;
    --c-text-light: #64748b;
    --c-text-muted: #94a3b8;
    --c-border: #E0E4EA;
    --c-bg: #F8FAFB;
    --c-white: #fff;
    --g-primary: linear-gradient(135deg, #3D65D7, #2B4BA8);
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-lg: 0 10px 30px rgba(16,32,64,0.12);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--c-text); background: var(--c-bg); }

/* === LOGIN PAGE === */
.login-container {
    width: 100%; max-width: 420px; padding: 16px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
}
.login-card { background: var(--c-white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); width: 100%; }
.login-header { text-align: left; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.login-header .logo { width: 40px; height: 40px; min-width: 40px; background: var(--g-primary); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--c-white); font-size: 1.2rem; }
.login-header-text { flex: 1; }
.login-header h1 { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.1; color: var(--c-text); }
.login-header p { color: var(--c-text-light); font-size: 12px; margin: 2px 0 0; }
.btn-login { background: var(--g-primary); border: none; color: var(--c-white); padding: 11px; font-size: 14px; font-weight: 600; border-radius: var(--radius); width: 100%; cursor: pointer; transition: filter .15s ease; }
.btn-login:hover { filter: brightness(1.06); }
.login-card .input-icon { position: relative; }
.login-card .input-icon i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--c-text-muted); font-size: 14px; }
.login-card .input-icon .form-control { padding-left: 32px; }
.login-card .form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }

/* === OFFICE 365 BUTTON (stub) === */
.o365-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--c-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.o365-divider::before, .o365-divider::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.btn-o365 { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 10px; border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-border); color: var(--c-text); font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
.btn-o365:disabled { opacity: .65; cursor: not-allowed; }
.btn-o365 .o365-badge { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-warning); background: rgba(240,165,0,.12); padding: 2px 6px; border-radius: 6px; }

/* === SCREENS TOPBAR (landing) === */
.screens-body { margin: 0; background: var(--c-bg); color: var(--c-text); }
.screens-topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px; background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.screens-topbar-left, .screens-topbar-right { display: flex; align-items: center; gap: 12px; }
.screens-topbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c-text); text-decoration: none; }
.screens-topbar-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--g-primary); display: flex; align-items: center; justify-content: center; color: #fff; }
.screens-topbar-btn { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--c-text-light); text-decoration: none; }
.screens-topbar-btn:hover { background: var(--c-bg); color: var(--c-text); }
.screens-topbar-avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--g-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.screens-main { padding: 24px; }

/* === SCREEN PICKER GRID === */
.screen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.screen-card { display: block; text-decoration: none; color: var(--c-text); background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 20px; transition: box-shadow .15s ease, transform .15s ease; }
.screen-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.screen-card .screen-thumb { height: 120px; border-radius: 10px; margin-bottom: 14px; background: #0b0b0d; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #5fd08a; font-size: 2rem; }
.screen-card h3 { font-size: 1rem; margin: 0 0 4px; }
.screen-card p { font-size: 12px; color: var(--c-text-light); margin: 0; }
.screen-card .screen-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--c-primary); }
.screens-page-title { max-width: 1100px; margin: 0 auto 18px; }
.screens-page-title h2 { font-size: 1.3rem; margin: 0; }
.screens-page-title p { color: var(--c-text-light); font-size: 13px; margin: 4px 0 0; }

/* === USER ADMIN === */
.ua-wrap { max-width: 980px; margin: 0 auto; }
.ua-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ua-head h2 { font-size: 1.3rem; margin: 0; }
.ua-head p { color: var(--c-text-light); font-size: 13px; margin: 4px 0 0; max-width: 560px; }
.ua-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.ua-card-head { padding: 14px 18px; border-bottom: 1px solid var(--c-border); font-weight: 600; display: flex; align-items: center; }
.ua-table { font-size: 14px; }
.ua-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted); border-bottom: 1px solid var(--c-border); }
.ua-table td { vertical-align: middle; }

/* === TOAST === */
#toastContainer { z-index: 9999; }
