* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { margin: 0; background-color: #f4f4f9; color: #333; }

nav {
    display: flex;
    background-color: #2c3e50;
}
nav a {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav a.active { background-color: #34495e; }

.container { padding: 20px; max-width: 800px; margin: auto; }

.camera-btn {
    display: block;
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px; /* 16px forhindrer iOS auto-zoom */
}

.submit-btn {
    width: 100%;
    background-color: #2ecc71;
    color: white;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 40px;
}

.success-msg {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}
.mt-20 { margin-top: 20px; }

/* Grid til oversigt.php */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media(min-width: 600px) {
    .grid { grid-template-columns: 1fr 1fr; }
}
.card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}
.card h3 { margin: 10px 0 5px 0; }
.card p { margin: 5px 0; color: #555; }
.skjult-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}