@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --navy-900: #0f172a;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --emerald-600: #059669;
    --amber-600: #d97706;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

body {
    font-family: var(--font-main);
    background-color: #f1f5f9;
    color: var(--slate-800);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Card & Panels */
.academic-panel, .glass-panel {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
    border-color: #93c5fd;
}

/* Calendar Grid & Uniform Cells */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-600);
    padding: 8px 0;
    text-align: center;
}

.calendar-day {
    min-height: 92px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 8px 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-day:hover:not(.empty-day) {
    border-color: #2563eb;
    background-color: #f8fafc;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.calendar-day.empty-day {
    background-color: #f8fafc;
    border: 1px dashed var(--slate-200);
    cursor: default;
    opacity: 0.45;
}

.calendar-day.weekend-day {
    background-color: #fafbfc;
}

.calendar-day.is-today {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 0 0 1.5px #2563eb;
}

.day-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--slate-700);
    transition: all 0.15s ease;
}

.day-number-badge.today {
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 9999px;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* Event Dots & Badge in Calendar */
.event-dot-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 6px;
    gap: 4px;
}

.event-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.event-badge-count {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    line-height: 1.2;
    white-space: nowrap;
}

/* Schedule List Cards in Sidebar */
.schedule-list-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 11px 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.schedule-list-card:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
    border-color: #93c5fd;
}

.schedule-list-card.kuliah {
    border-left: 4px solid var(--blue-600);
}
.schedule-list-card.seminar {
    border-left: 4px solid #0284c7;
}
.schedule-list-card.sidang {
    border-left: 4px solid #d97706;
}
.schedule-list-card.akademik {
    border-left: 4px solid #059669;
}
.schedule-list-card.past-event {
    opacity: 0.65;
    border-left: 4px solid var(--slate-400);
    background-color: #f8fafc;
}

/* Modal Styling */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Form Inputs */
.form-input-styled {
    border-radius: 10px;
    border: 1px solid var(--slate-300);
    background-color: #ffffff;
    font-size: 0.875rem;
    color: var(--slate-900);
    transition: all 0.15s ease;
}

.form-input-styled:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Live Pulse Indicator Dot */
.live-pulse-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #10b981;
    flex-shrink: 0;
}

.live-pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: inherit;
    animation: livePulseRing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes livePulseRing {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    70%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}
