* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef2f7;
    color: #111827;
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

/* VENSTRE SIDE */

.sidebar {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: white;
    padding: 24px;

    position: sticky;
    top: 0;

    height: 100vh;
    overflow-y: auto;
}

.sidebar img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.sidebar h2 {
    font-size: 32px;
    margin: 0 0 18px;
}

.sidebar p {
    font-size: 20px;
    line-height: 1.6;
    color: #d1d5db;
}

.home-button,
.admin-link {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 20px;
    border: 0;
    border-radius: 18px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;

    transition: 0.2s;
}

.home-button:hover,
.admin-link:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

/* HØJRE SIDE */

.content {
    padding: 30px;
}

h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 48px;
}

/* SØGNING */

#search {
    width: 100%;
    padding: 24px;
    font-size: 32px;
    border: 3px solid #d1d5db;
    border-radius: 22px;
    margin-bottom: 30px;

    position: sticky;
    top: 12px;
    z-index: 20;

    background: white;

    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

#search:focus {
    outline: none;
    border-color: #2563eb;
}

/* LINKS */

.sites {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

    gap: 24px;
}

.site-card {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 170px;

    background: white;
    border-radius: 24px;

    padding: 28px;

    text-decoration: none;
    color: #111827;

    box-shadow: 0 4px 18px rgba(0,0,0,0.08);

    transition: 0.2s;

    border: 3px solid transparent;
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    border-color: #2563eb;
}

.site-card strong {
    display: block;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.site-card span {
    display: inline-block;

    font-size: 20px;
    color: white;

    background: #2563eb;

    padding: 8px 14px;

    border-radius: 999px;

    width: fit-content;
}

/* ADMIN */

.admin-panel {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.admin-pre {
    background: #111827;
    color: #e5e7eb;

    border-radius: 18px;

    padding: 20px;

    overflow: auto;

    max-height: 500px;

    font-size: 15px;
    line-height: 1.5;
}

.admin-button {
    padding: 18px 24px;
    border: 0;
    border-radius: 16px;

    background: #2563eb;
    color: white;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;
}

.admin-button:hover {
    background: #1d4ed8;
}

.admin-logout {
    background: #991b1b;
}

.admin-logout:hover {
    background: #7f1d1d;
}

/* INPUTS */

input[type="text"],
input[type="password"],
input[type="date"] {
    width: 100%;

    padding: 16px;

    border-radius: 14px;

    border: 2px solid #d1d5db;

    font-size: 20px;
}

input:focus {
    outline: none;
    border-color: #2563eb;
}

/* FEJL / SUCCESS */

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

    padding: 18px;

    border-radius: 16px;

    margin-bottom: 20px;

    font-size: 20px;
}

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

    padding: 18px;

    border-radius: 16px;

    margin-bottom: 20px;

    font-size: 20px;
}

/* MOBILE/TABLET */

@media (max-width: 1100px) {

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

    .sidebar {
        position: relative;
        height: auto;
    }

    h1 {
        font-size: 42px;
    }

    #search {
        font-size: 28px;
        padding: 22px;
    }

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

    .site-card {
        min-height: 150px;
    }

    .site-card strong {
        font-size: 30px;
    }
}
