body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    /* Initiell sentrering for passordboks */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Litt mindre for å unngå scrollbar ved feilmelding */
}

#password-protection {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%; /* For mindre skjermer */
}

#password-protection h2 {
    margin-top: 0;
    color: #2c3e50;
}

#password-protection input[type="password"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#password-protection button {
    background-color: #3498db;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
#password-protection button:hover {
    background-color: #2980b9;
}

.error-message {
    color: red;
    margin-top: 10px;
    font-size: 0.9em;
}

.container {
    max-width: 900px;
    /* margin: 0 auto; -- fjernet da body sentrerer initialt */
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="date"],
input[type="time"],
select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.employee-management {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center; /* For justering av knapp */
}

.employee-management input[type="text"] {
    flex-grow: 1;
    margin-bottom: 0; /* Fjern margin når det er i flexbox */
}
/* Generell knappstyling inne i appen */
#app-content button {
    background-color: #3498db;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease-in-out;
}

#app-content button:hover {
    background-color: #2980b9;
}
#timeForm button { /* Sikre at registreringsknappen får riktig margin */
    margin-top: 5px;
}

form div {
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #ecf0f1;
    color: #34495e;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

.delete-btn {
    background-color: #e74c3c !important; /* Override for spesifisitet */
    padding: 5px 10px !important;
    font-size: 0.9em !important;
}
.delete-btn:hover {
    background-color: #c0392b !important;
}