/* Pengaturan Posisi & Ukuran Kalender Event (Di posisi kanan atas) */
#kalender-event {
    position: absolute;
    top: 3%;
    right: 2%;
    left: auto;
    bottom: auto;
    width: 235px;
    max-width: 28vw;
    z-index: 25;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.6));
    animation: floating 3.2s ease-in-out infinite;
    cursor: pointer;
}

/* Kalender Card Board (Wooden Theme) */
.kalender-card {
    background-color: #f6ebd8;
    border: 3px solid #d4a373;
    border-radius: 14px;
    padding: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.kalender-card:hover {
    transform: scale(1.02);
    filter: brightness(1.03);
}

/* Header */
.kalender-card-header {
    background: linear-gradient(180deg, #558b2f 0%, #33691e 100%);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 1px solid #1b5e20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.header-icon {
    flex-shrink: 0;
}

/* List Items */
.kalender-card-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kalender-card-item {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(212, 163, 115, 0.4);
    transition: all 0.2s ease;
}

.kalender-card-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #d4a373;
}

.k-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.k-icon.icon-green {
    background-color: #558b2f;
}

.k-icon.icon-purple {
    background-color: #6a1b9a;
}

.k-icon.icon-orange {
    background-color: #e65100;
}

.k-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.k-date {
    font-size: 8.5px;
    font-weight: 800;
    color: #4e342e;
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.k-date-highlight {
    color: #e65100;
}

.k-title {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.k-title-more {
    color: #2e7d32;
    font-size: 11px;
    font-weight: 800;
}

.k-sub {
    font-size: 9px;
    color: #757575;
    line-height: 1;
}

/* Slot 4: Viewing More Events */
.item-more {
    background-color: #ffffff;
    border: 1.5px solid #2e7d32;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.2);
}

.item-more:hover {
    background-color: #f1f8e9;
    border-color: #1b5e20;
    transform: translateY(-1px);
}

.k-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    margin-left: 4px;
    flex-shrink: 0;
}

/* Card Footer */
.kalender-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px dashed #d4a373;
    font-size: 8.5px;
    color: #5d4037;
    font-weight: 600;
}

/* Styles untuk Modal Kalender Event */
.event-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 15px;
    align-items: center;
}

.event-date {
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-details strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.event-details p {
    font-size: 0.85rem;
    color: #5f6368;
    margin: 0;
    line-height: 1.3;
}

.kalender-tab-content {
    display: none;
    margin-top: 15px;
}

.kalender-tab-content.active {
    display: block;
}
