.khwr-calendar-container {
    max-width: 400px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.khwr-calendar-header {
    background: #2271b1;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.khwr-month-year {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.khwr-nav-btn {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.khwr-nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.khwr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.khwr-day-header {
    background: #f6f7f7;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #646970;
    border-bottom: 1px solid #e1e5e9;
}

.khwr-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    cursor: default;
    position: relative;
}

.khwr-day-cell:nth-child(7n) {
    border-right: none;
}

.khwr-day-cell.khwr-empty {
    background: #fafafa;
}

.khwr-day-cell.khwr-past {
    background: #f6f7f7;
    color: #a7aaad;
}

.khwr-day-cell.khwr-available {
    background: #00a32a;
    color: #fff;
}

.khwr-day-cell.khwr-available:hover {
    background: #1fe951;
}

.khwr-day-cell.khwr-unavailable {
    background: #ffeaea;
    color: #d63638;
    position: relative;
}

.khwr-day-cell.khwr-unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 2px;
    height: 70%;
    background: #d63638;
}

.khwr-day-number {
    font-weight: 500;
    z-index: 1;
    position: relative;
}

.khwr-calendar-legend {
    background: #f6f7f7;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid #e1e5e9;
}

.khwr-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.khwr-available-indicator,
.khwr-unavailable-indicator {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.khwr-available-indicator {
    background: #00a32a;
}

.khwr-unavailable-indicator {
    background: #d63638;
}

@media (max-width: 480px) {
    .khwr-calendar-container {
        margin: 10px;
    }
    
    .khwr-calendar-header {
        padding: 12px 15px;
    }
    
    .khwr-month-year {
        font-size: 16px;
    }
    
    .khwr-day-cell {
        min-height: 40px;
    }
    
    .khwr-calendar-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}