/* style.css - Bårhusregister Hjo Kommun */

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f0f1f3;
    color: #222;
    margin: 0;
    padding: 0;
}

header.site-header {
    background-color: #2b3a4a;
    color: #ffffff;
    padding: 22px 30px;
    border-bottom: 4px solid #5a6b7d;
}

header.site-header h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.menu a.btn, button.btn, input[type="submit"].btn {
    display: inline-block;
    background-color: #2b3a4a;
    color: #fff;
    text-decoration: none;
    padding: 16px 26px;
    border-radius: 6px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.menu a.btn:hover, button.btn:hover, input[type="submit"].btn:hover {
    background-color: #44596f;
}

.btn.danger {
    background-color: #8b3a3a;
}
.btn.danger:hover {
    background-color: #a84747;
}

.btn.secondary {
    background-color: #6c757d;
}
.btn.secondary:hover {
    background-color: #80868c;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

h2 {
    margin-top: 0;
    color: #2b3a4a;
}

form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.92rem;
}

form input[type="text"],
form input[type="date"],
form input[type="time"],
form textarea,
form select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

form textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    margin-top: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

table th {
    background-color: #2b3a4a;
    color: #fff;
}

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

.status-i-barhus {
    color: #8b3a3a;
    font-weight: bold;
}

.status-utlamnad {
    color: #2e7d32;
    font-weight: bold;
}

.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 18px;
}

.alert-success {
    background-color: #dcedc8;
    color: #33691e;
    border: 1px solid #aed581;
}

.alert-error {
    background-color: #ffcdd2;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2b3a4a;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell a, .actions-cell button {
    margin-right: 6px;
    font-size: 0.85rem;
    padding: 6px 10px;
}

.empty-msg {
    color: #777;
    font-style: italic;
}

.confirm-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 18px 22px;
    border-radius: 6px;
}
