.kalendar-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 24px;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.kalendar-container h3 {
    text-align: center;
    margin-top: 0;
    color: #333;
}

.kalendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.kalendar-header h4 {
    flex: 1;
    text-align: center;
    margin: 0;
    color: #555;
}

.cal-btn {
    background: #fff;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cal-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* KLÍČOVÁ ČÁST - GRID MUSÍ BÝT SPRÁVNĚ */
.kalendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 3fr);
    grid-auto-rows: minmax(60px, auto);
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.day-header {
    font-weight: bold;
    text-align: center;
    color: #666;
    padding: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-cell {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 1;
}

.day-cell:hover {
    background: #e3f2fd;
    border-color: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day-cell.has-event {
    background: #fff9c4;
    border-color: #43a047;
}

.event-form {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-form h4 {
    margin-top: 0;
    color: #333;
}

.event-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-form input[type="date"],
.event-form input[type="text"],
.event-form textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.event-form input[type="date"]:focus,
.event-form input[type="text"]:focus,
.event-form textarea:focus {
    outline: none;
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.1);
}

.cal-btn-primary {
    background: #43a047;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.cal-btn-primary:hover {
    background: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
}

.event-list {
    background: white;
    padding: 16px;
    border-radius: 8px;
}

.event-list h4 {
    margin-top: 0;
    color: #333;
}

.event-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    padding: 12px;
    border-left: 4px solid #43a047;
    background: #f5f7fa;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.event-list li:hover {
    background: #eef2f7;
}

.event-delete-btn {
    background: #ff5252;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.event-delete-btn:hover {
    background: #ff1744;
}

.kalendar-message {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    color: #666;
    margin: 20px;
}

@media (max-width: 768px) {
    .kalendar-container {
        padding: 16px;
    }
    
    .day-cell {
        font-size: 12px;
    }
    
    .event-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}
