/* Grundläggande reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    max-width: 400px;
    background-color: rgb(255, 255, 220);
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ECECEC;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #999;
    background-color: #ffffe0;
}

button {
    background-color: #444;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #222;
}

/* Container för sidor */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    background-color: #f4f4f4;
    color: black;
    padding: 20px;
    text-align: center;
}

.site-header h1 {
    font-size: 3rem;
}

/* Navigationsbar */
.navbar {
    background-color: #f4f4f4;
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    gap: 10px;
    padding-left: 2vw;
    padding-right: 2vw;
    
}

.navbar a {
    color: Black;
    padding: 10px 20px;
    text-decoration: none;
    background-color: #f4f4f4;
}

.navbar a:hover {
    background-color: #ff8000;
    color: white;
}

/* Blockbaserat innehåll */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.block {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tabeller */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: white;
    font-size: 15px;
}

table thead {
    background-color: #444;
    color: white;
}

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

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

table tr:hover {
    background-color: #f0f8ff;
}

.highlight-today {
    background-color: #fffae6 !important;
}

/* Footer */
.site-footer {
    background-color: #f4f4f4;
    color: #ddd;
    padding: 40px 20px 20px 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.footer-block {
   text-align: right;
}

.footer-block h3 {
    color: #CCCCCC;
    margin-bottom: 10px;
}

.footer-block a {
    color: #ccc;
    text-decoration: none;
}

.footer-block a:hover {
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #CCCCCC;
}

/* Responsiva justeringar */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .site-header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 10px;
    }
}

.login-form .form-row {
    margin-bottom: 10px;
}

.login-form label {
    display: inline-block;
    width: 10vw; /* justera bredden här */
    font-weight: bold;
    text-align: left;
    padding: 5px;
}
.select,
textarea {
    background-color: rgb(255, 255, 220);
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ECECEC;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    max-width: 400px;
}

select:focus,
textarea:focus {
    border-color: #999;
    background-color: #ffffe0;
}

button {
    background-color: #444;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #222;
}
/* Meddelanderuta */
.message-box {
    margin: 20px auto;
    max-width: 800px;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}