/* /public/css/style.css */
:root {
    --primary-color: #0056b3;
    --border-color: #ddd;
    --bg-light: #f9f9f9;
    --hover-bg: #e2eef9;
    --pikett-color: #ff9800;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

button {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
}

button.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

button.primary-btn:hover {
    background: #004494;
}

/* Das Excel-ähnliche Grid */
.grid-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.grid-table th, .grid-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: center;
    min-width: 100px;
}

.grid-table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

.grid-cell {
    cursor: cell;
    position: relative;
    height: 40px;
    transition: background 0.2s;
}

.grid-cell:hover {
    background-color: var(--hover-bg);
}

/* Visuelle Markierungen für Schichten */
.shift-block {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.85em;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.pauschal-block {
    background-color: var(--pikett-color);
    color: white;
    font-weight: bold;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Natives HTML5 Modal Styling */
dialog {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 20px;
    width: 350px;
}

dialog::backdrop {
    background: rgba(0,0,0,0.5);
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input, form select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.abwesenheit-block {
    color: white;
    font-size: 0.85em;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 2px;
    font-weight: bold;
    text-transform: capitalize;
}
.abwesenheit-block.ferien { background-color: #28a745; }
.abwesenheit-block.krankheit { background-color: #dc3545; }
.abwesenheit-block.schule, .abwesenheit-block.weiterbildung { background-color: #17a2b8; }
.abwesenheit-block.militaer { background-color: #6c757d; }