* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #222;
}

/* =========================
   HUVUDSIDA
   ========================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.container > h1 {
    text-align: center;
    margin: 0 0 40px;
    font-size: 42px;
}

.boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.box h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 30px;
}

.save-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.save-form input {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.save-form button {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: #222;
    color: #fff;
    cursor: pointer;
}

.save-form button:hover {
    background: #444;
}

.status {
    width: 100%;
    min-height: 22px;
    margin-top: 8px;
    font-size: 14px;
}

.status.success {
    color: #16833a;
}

.status.error {
    color: #c62828;
}

.view-link {
    display: inline-block;
    margin-top: 20px;
    color: #0066cc;
    text-decoration: none;
}

.view-link:hover {
    text-decoration: underline;
}



/* =========================
   UNDERSIDOR
   ========================= */

.display-page {
    width: 1920px;
    height: 1080px;

    position: relative;

    background: #000;
    color: #fff;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px;

    overflow: hidden;
}

.display-page h1 {
    font-size: 80px;
    margin: 0 0 60px;
}

.display-value {
    font-size: 160px;
    font-weight: bold;
    line-height: 1.1;

    word-break: break-word;
}


/* =========================
   KUSTBILD
   ========================= */

.display-page::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 346px;
    height: 457px;

    background-image: url("img/kust.jpg");
    background-size: 100% 100%;
    background-position: center;

    z-index: 1;
}


/* Se till att texten ligger ovanför bilden */

.display-page h1,
.display-value {
    position: relative;
    z-index: 2;
}




/* =========================
   MOBIL
   ========================= */

@media (max-width: 800px) {

    .container {
        padding: 20px;
    }

    .boxes {
        grid-template-columns: 1fr;
    }

    .box {
        padding: 20px;
    }

    .container > h1 {
        font-size: 32px;
    }

    .box h2 {
        font-size: 25px;
    }

}
/* ========================= 
LOKAL 
========================= */ 
.local-name { 
position: absolute; 
top: 30px; 
left: 40px; 
font-size: 36px; 
font-weight: 
bold; color: #fff; 
z-index: 3; 
}

.current-value {
    margin-bottom: 20px;
    padding: 15px;

    background: #f5f5f5;
    border-radius: 8px;

    font-size: 18px;
}

.current-value span {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
    color: #666;
}

.current-value strong {
    font-size: 14px;
    color: #222;
}





* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.login-container {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;

    background: #ffffff;

    padding: 40px;

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;

    margin-bottom: 30px;
}

.logo span {
    font-weight: 400;
}

h1 {
    margin: 0 0 8px;

    font-size: 28px;
}

.subtitle {
    margin: 0 0 30px;

    color: #6b7280;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 70px;
}

.password-wrapper button {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: none;

    color: #2563eb;

    cursor: pointer;

    font-weight: 600;
}

.login-button {
    width: 100%;

    padding: 14px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;
    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s,
        transform 0.05s;
}

.login-button:hover {
    background: #1d4ed8;
}

.login-button:active {
    transform: scale(0.99);
}

.error {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 8px;

    background: #fee2e2;
    color: #991b1b;

    font-size: 14px;
}

.top-bar { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 1000; 
} 
.logout-button { 
    display: inline-block; 
    padding: 10px 18px; 
    background: #dc2626; 
    color: #ffffff; 
    text-decoration: none; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600; 
    transition: background 0.15s; 
} 
.logout-button:hover { 
    background: #b91c1c; 
}