.calendar-container {
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    padding: 8px 16px;
    border-radius: 6px;
    background: #0095b7;
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    padding: 8px 16px;
    border-radius: 6px;
    background: #007a94;
}

.calendar-container {
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.date-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.date-header {
    background: #0095b7;
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.date-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 400px;
}

.event-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #f8fafc;
    border-left: 4px solid;
    transition: transform 0.2s;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item.service-request {
    border-left-color: #0095b7;
}

.event-item.work-order {
    border-left-color: #a8d600;
}

.event-type {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

.event-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-open {
    background: #e0f2fe;
    color: #0369a1;
}

.status-closed {
    background: #dcfce7;
    color: #166534;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
}

.no-events {
    text-align: center;
    padding: 30px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    margin: 20px;
}

/* Grid kalender bulanan 7 kolom */
.calendar-grid-month {
    padding: 10px;
}

.calendar-grid-month .grid {
    gap: 4px;
}

.date-card-mini {
    background: #f8fafc;
    border-radius: 6px;
    min-height: 60px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    padding: 2px;
}



.event-item-mini {
    padding: 1px 2px;
    margin-bottom: 2px;
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.2;
    word-break: break-word;
    /* white-space: nowrap; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
}

.event-item-mini .truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-item-mini .event-desc {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
}

.event-item-mini.bg-blue-100 {
    background: #e0f2fe;
    color: #0369a1;
}

.event-item-mini.bg-green-100 {
    background: #dcfce7;
    color: #166534;
}

.event-item-mini.bg-red-50 {
    background: #fee2e2;
    color: #991b1b;
}
.event-item-mini.border-red-500 {
    border-color: #ef4444;
}
.event-item-mini .bg-red-300 {
    background: #fca5a5 !important;
    color: #991b1b !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .date-card {
        margin-bottom: 15px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 10px;
    }

    .calendar-grid-month .grid {
        gap: 2px;
    }

    .date-card-mini {
        min-height: 40px;
        height: 60px;
        font-size: 10px;
    }

    

}
