/* assets/css/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header h2 {
    margin: 0;
    color: #0056b3;
    flex-grow: 1;
    text-align: center;
}

.header button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.header button:hover {
    background-color: #0056b3;
}

#addShiftBtn {
    background-color: #28a745;
}
#addShiftBtn:hover {
    background-color: #218838;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.day, .day-name {
    padding: 8px;
    border: 1px solid #ddd;
    min-height: 120px;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.day-name {
    font-weight: bold;
    text-align: center;
    background-color: #e9ecef;
    min-height: auto;
    padding: 10px 8px;
}

.other-month {
    background-color: #f8f9fa;
}
.other-month > strong {
    color: #aaa;
}

.shift {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 5px;
    margin-top: 5px;
    font-size: 12px;
}

.shift-user {
    font-weight: bold;
    color: #0c5460;
}

.shift-actions {
    text-align: right;
    margin-top: 3px;
}
.shift-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    font-size: 14px;
}

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 25px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 8px; position: relative; }
.close { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover, .close:focus { color: black; }

#shiftForm { display: flex; flex-direction: column; }
#shiftForm label { margin-top: 10px; font-weight: bold; }
#shiftForm input, #shiftForm select, #shiftForm textarea { padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
#shiftForm button { margin-top: 20px; padding: 12px; background-color: #28a745; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 18px; }
#shiftForm button:hover { background-color: #218838; }

.calendar-subscribe {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.calendar-subscribe label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.input-group {
    display: flex;
}

.input-group input[type="text"] {
    flex-grow: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background-color: #fff;
    color: #495057;
}

.input-group button {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-group button:hover {
    background-color: #0056b3;
}

.day.today {
    background-color: #fffbe6;
    border: 2px solid #ffc107;
}

.day.today > strong {
    color: #d39e00;
    font-weight: 900;
}

/* --- STYLY PRO RESPONZIVNÍ ZOBRAZENÍ --- */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .day-name {
        display: none;
    }

    #calendar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .day {
        min-height: auto;
        padding: 15px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 15px;
        position: relative;
    }
    
    .day::before {
        content: attr(data-day-name);
        font-weight: bold;
        color: #0056b3;
        margin-right: 10px;
        font-size: 1.2em;
    }
    
    .day > strong {
        font-size: 1.2em;
    }

    .input-group {
        flex-direction: column;
        gap: 5px;
    }
    .input-group input[type="text"],
    .input-group button {
        border-radius: 4px !important;
        border-right: 1px solid #ced4da !important;
    }
}

.day.holiday {
    background-color: #e9ecef;
    color: #6c757d;
}

.holiday-info {
    font-size: 12px;
    font-weight: bold;
    color: #495057;
    background-color: #d6d8db;
    padding: 3px 5px;
    border-radius: 3px;
    margin-top: 5px;
    text-align: center;
}

/* --- STYLY PRO RESPONZIVNÍ ZOBRAZENÍ --- */
@media (max-width: 768px) {
    /* ... stávající responzivní CSS ... */
}

.shift.all-day-event {
    background-color: #d3e9d3;
    text-align: center;
    font-weight: bold;
    padding: 5px;
}