body {
    position: relative;
    font-family: "Work Sans", sans-serif;
}
.page-container {
    display: flex;
    justify-content: center;
}
.content {
    width: 95vw;
    height: 100vh;
    height: 100dvh;
}

/* Event Detail Modal Styling */
.event-detail-container {
    padding: 20px 0;
}
.modal-content-event {
    position: relative;
}
.btn-close-modal {
    position: absolute;
    top: 0;
    right: 0;
    margin: 20px;
    z-index: 99999;
}

.event-detail-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.event-detail-category.sosmas {
    background-color: #e7f3ff;
    color: #0066cc;
}

.event-detail-category.kelembagaan {
    background-color: #f0f9ff;
    color: #0284c7;
}

.event-detail-category.pendidikan {
    background-color: #ecfdf5;
    color: #059669;
}

.event-detail-category.danus {
    background-color: #fef3c7;
    color: #d97706;
}

.event-detail-category.segaya {
    background-color: #fce7f3;
    color: #be185d;
}

.event-detail-category.ksa {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.event-detail-category.keagamaan {
    background-color: #fef2f2;
    color: #dc2626;
}

.event-detail-category.pusdatin {
    background-color: #f1f5f9;
    color: #475569;
}

/* Add these missing category styles */

/* For filter badges */
.filter-category-badge.kominfo {
    background-color: #8b5cf6; /* Purple variant */
}

.filter-category-badge.penkastrat {
    background-color: #06b6d4; /* Cyan */
}

.filter-category-badge.huvoks {
    background-color: #10b981; /* Emerald */
}

/* For event detail modal */
.event-detail-category.kominfo {
    background-color: #f3e8ff;
    color: #8b5cf6;
}

.event-detail-category.penkastrat {
    background-color: #ecfeff;
    color: #06b6d4;
}

.event-detail-category.huvoks {
    background-color: #d1fae5;
    color: #10b981;
}

.event-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
}

.event-detail-time {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #374151;
}

.event-detail-time::before {
    content: "🕐";
    margin-right: 8px;
    font-size: 18px;
}

.event-detail-date {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #374151;
}

.event-detail-date::before {
    content: "📅";
    margin-right: 8px;
    font-size: 18px;
}

.event-detail-duration {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    color: #6b7280;
}

.event-detail-duration::before {
    content: "⏱️";
    margin-right: 8px;
    font-size: 18px;
}

/* Make event items clickable with hover effects */
.small-event-item:hover,
.big-screen-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Add active event styling for modal */
.small-event-item.active,
.big-screen-event-item.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-left-color: #c44569;
    color: white;
}

.small-event-item.active .small-event-item-title,
.big-screen-event-item.active .big-screen-event-item-title span {
    color: white;
}

.small-event-item.active .small-event-item-time,
.big-screen-event-item.active .big-screen-event-item-time span {
    color: rgba(255, 255, 255, 0.9);
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    width: 100vw;
    height: 100dvh;
    overflow: hidden !important;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Loading container */
.loading-container {
    position: absolute;
}
/* Circle logo in the center */
.logo-circle {
    position: absolute;
    width: 100px;
    height: 100px;
}

/* Red loading ring around the logo */
.loading-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Loading overlay end */

/* Small screen calendar */
.small-screen-calendar {
    display: none;
    padding: 20px;
    height: 100dvh;
    overflow-y: auto;
}

.small-calendar-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.small-calendar-title {
    display: flex;
    flex-direction: column;
}

.calendar-year {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.calendar-month {
    font-size: 24px;
    font-weight: 600;
    color: #121212;
}

.small-calendar-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #f5f5f5;
}

.today-btn {
    color: #121212;
}

.nav-btn {
    color: #666;
    font-size: 20px;
}

.small-calendar-grid {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.small-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.small-weekday {
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 8px 0;
    font-weight: 500;
}

.small-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.small-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
}

.small-day:hover {
    background: rgba(0, 0, 0, 0.05);
}

.small-day.other-month {
    color: #ccc;
    cursor: default;
}

.small-day.other-month:hover {
    background: white;
}

.small-day.today {
    background: #121212;
    color: white;
    font-weight: 600;
}

.small-day.selected {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    font-weight: 600;
}

/* Red dot for events */
.small-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ff0000;
    border-radius: 50%;
}

.small-events-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.small-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    min-height: 40px;
}

.small-events-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.small-events-title {
    font-size: 18px;
    font-weight: 600;
    color: #121212;
    flex: 1;
    min-width: 0;
}

.small-all-events-btn {
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.small-events-content {
    height: calc(100vh - calc(100vw + 150px));
    height: calc(100dvh - calc(100vw + 150px));
    min-height: 320px;
    overflow-y: auto;
}

/* Small screen event items */
.small-event-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.small-event-item.online-offline {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.small-event-item.meeting {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.small-event-item.deadline {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.small-event-item.important {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.small-event-item.other {
    background-color: #e2e3e5;
    border-left: 4px solid #6c757d;
}

.small-event-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 16px;
}

.small-event-item-time {
    color: #6c757d;
    font-size: 16px;
}

.no-events-small {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    font-size: 16px;
}

/* Small screen all events styling */
.small-all-events-date-group {
    margin-bottom: 20px;
}

.small-all-events-date-header {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}

.small-all-events-date-header h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    font-size: 16px;
}

.small-all-events-date-content {
    padding-left: 0;
}

/* infinite calendar */
.big-screen-calendar {
    display: none;
    overflow: hidden;
}

.big-screen-calendar-container {
    display: flex;
    width: 100vw;
}
.big-screen-calendar-col {
    width: 50%;
    max-width: 600px;
    border-right: solid 2px #d3d3d3;
}

.infinite-calendar-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 0 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.infinite-calendar-container::-webkit-scrollbar {
    display: none;
}

.infinite-month-section {
    margin-bottom: 30px;
    padding: 20px 0;
}

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

.infinite-month-title {
    font-size: 18px;
    font-weight: 600;
    color: #121212;
}

.infinite-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-bottom: 10px;
    padding: 0 10px;
}

.infinite-weekday {
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 8px 0;
    font-weight: 500;
}

.infinite-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    padding: 0 10px;
}

.infinite-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.infinite-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.infinite-day.infinite-other-month {
    color: #d3d3d3;
    cursor: default;
}

.infinite-day.infinite-other-month:hover {
    background: none;
}

.infinite-day.infinite-today {
    background: #121212;
    color: white;
    font-weight: 600;
}

.infinite-day.infinite-selected {
    background: #feeaeb;
    color: #f90203;
    font-weight: 600;
}

/* Red dot for events/highlights */
.infinite-day.infinite-has-event::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: red;
    border-radius: 50%;
}

/* Loading indicator */
.infinite-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}
/* infinite calendar end */

/* big screen event */
.big-screen-event {
    padding: 20px;
    width: calc(100% - min(60%, 750px));
}
.big-screen-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.big-screen-event-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.big-screen-title {
    font-size: 18px;
    font-weight: 600;
    color: #121212;
}

/* No events message */
.no-events {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* Base event item styling */
.big-screen-event-item {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Event type background colors */
.big-screen-event-item.online-offline {
    background-color: #d4edda; /* Light green */
    border-left: 4px solid #28a745; /* Darker green border */
}

.big-screen-event-item.meeting {
    background-color: #d1ecf1; /* Light blue */
    border-left: 4px solid #17a2b8; /* Darker blue border */
}

.big-screen-event-item.deadline {
    background-color: #fff3cd; /* Light orange */
    border-left: 4px solid #ffc107; /* Darker orange border */
}

.big-screen-event-item.important {
    background-color: #f8d7da; /* Light red */
    border-left: 4px solid #dc3545; /* Darker red border */
}

.big-screen-event-item.other {
    background-color: #e2e3e5; /* Light gray */
    border-left: 4px solid #6c757d; /* Darker gray border */
}

/* Optional: Hover effects */
.big-screen-event-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Text styling for better readability */
.big-screen-event-item-title span {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
}

.big-screen-event-item-time span {
    color: #6c757d;
    font-size: 0.9em;
}

/* All events view styling */
.all-events-date-group {
    margin-bottom: 25px;
}

.all-events-date-header {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e9ecef;
}

.all-events-date-header h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    font-size: 16px;
}

.all-events-date-content {
    padding-left: 0;
}

/* Scroll styling for all events view */
.big-screen-event-content {
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    padding-right: 10px;
}

.big-screen-event-content::-webkit-scrollbar {
    width: 6px;
}

.big-screen-event-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.big-screen-event-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.big-screen-event-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive breakpoints */
@media (max-width: 991px) {
    .big-screen-calendar {
        display: none !important;
    }

    .small-screen-calendar {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .small-screen-calendar {
        display: none !important;
    }

    .big-screen-calendar {
        display: block !important;
    }
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .event-detail-title {
        font-size: 20px;
    }

    .event-detail-time,
    .event-detail-date,
    .event-detail-duration {
        font-size: 16px;
    }
}

/* Filter dropdown styling */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

.filter-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-category-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-category-badge.sosmas {
    background-color: #0066cc;
}

.filter-category-badge.kelembagaan {
    background-color: #0284c7;
}

.filter-category-badge.pendidikan {
    background-color: #059669;
}

.filter-category-badge.danus {
    background-color: #d97706;
}

.filter-category-badge.segaya {
    background-color: #be185d;
}

.filter-category-badge.ksa {
    background-color: #7c3aed;
}

.filter-category-badge.keagamaan {
    background-color: #dc2626;
}

.filter-category-badge.pusdatin {
    background-color: #475569;
}

/* Filter controls responsive */
@media (max-width: 480px) {
    .small-events-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .small-events-title {
        font-size: 16px;
        width: 100%;
        margin-bottom: 4px;
    }

    .small-events-controls {
        gap: 6px;
        width: 100%;
        justify-content: flex-start;
    }

    .small-events-controls .btn {
        font-size: 16px;
        padding: 4px 8px;
    }

    .small-events-controls .dropdown .btn {
        font-size: 16px;
        padding: 4px 8px;
    }
}

@media (max-width: 380px) {
    .small-events-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .small-events-controls .dropdown,
    .small-events-controls .btn {
        width: 100%;
        text-align: center;
    }
}
