:root {
    --geus-blue: #005A87;
    --geus-blue-dark: #00486d;
    --light-blue: #f5f8fa;
    --success-bg: #eef7ee;
    --success-border: #c7e3c7;
    --border: #d8d8d8;
    --text: #333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fafafa;
}

header {
    background: white;
    border-bottom: 4px solid #005A87;
    padding: 1.5rem 2rem;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.geus-logo {
    height: 85px;
    width: auto;
}

.header-text h1 {
    margin: 0;
    color: #005A87;
}

.header-text p {
    margin-top: 6px;
    color: #666;
}
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

#sensortable {
    min-width: 1200px; /* eller hvad der passer */
}

.intro {
    background: var(--light-blue);
    border-left: 5px solid var(--geus-blue);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2 {
    color: var(--geus-blue);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

form label {
    margin-right: 8px;
}

form select,
form input,
form button {
    margin-right: 5px;
    margin-bottom: 12px;
}

input[type="radio"] {
    margin-left: 15px;
    margin-right: 5px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 0.4rem;
    font-weight: bold;
}

.required {
    color: #c62828;
}

input,
select,
textarea {
    padding: 0.75rem;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--geus-blue);
    box-shadow: 0 0 4px rgba(0,90,135,0.25);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.info-box {
    margin-top: 1rem;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: 4px;
    padding: 1rem;
}

.button-row {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--geus-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--geus-blue-dark);
}

.btn-secondary {
    background: #e6e6e6;
}

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

footer {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {

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

    .button-row {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

.measurement-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.measurement-fields textarea {
    width: 100%;
    height: 300px;
}

#sensortable {
    border-collapse: collapse;
    width: 100%;
}

#sensortable th,
#sensortable td {
    border: 1px solid #cfcfcf;
    padding: 8px 12px;
}

#sensortable th {
    background-color: #005A87;
    color: white;
    font-weight: bold;
}

#sensortable tr:nth-child(even) {
    background-color: #f7f7f7;
}