* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
body {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
    padding: 20px;
}
.app {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: white;
    padding: 1rem 1.8rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}
.title-time h1 { font-size: 1.6rem; color: #1e2b6e; }
.title-time h1 i { color: #3b5bdb; margin-right: 8px; }
.datetime { display: flex; gap: 1rem; font-weight: 500; color: #334155; margin-top: 5px; }
.admin-panel { display: flex; align-items: center; gap: 1rem; }
.admin-status { background: #e2e8f0; padding: 6px 14px; border-radius: 40px; font-size: 0.8rem; font-weight: 600; }
.admin-btn { background: #3b5bdb; border: none; padding: 8px 18px; border-radius: 30px; color: white; cursor: pointer; transition: 0.2s; }
.admin-btn:hover { background: #1e3a8a; }
.weekly-panel {
    background: white;
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.weekly-panel h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.weekly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.weekly-day {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 12px;
}
.weekly-day label {
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}
.weekly-day textarea {
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 0.8rem;
    font-family: monospace;
    resize: vertical;
}
.save-weekly-btn {
    background: #3b5bdb;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    margin-top: 1rem;
    cursor: pointer;
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.6rem 1.5rem;
    border-radius: 3rem;
}
.calendar-nav button { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #3b5bdb; }
.calendar-nav h2 { font-size: 1.4rem; font-weight: 600; }
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    background: #f1f5f9;
    padding: 12px 0;
    border-radius: 1.2rem;
    margin-bottom: 10px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.calendar-day {
    background: white;
    border-radius: 1.2rem;
    min-height: 180px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: 0.1s;
}
.calendar-day.current-week {
    background: #fff9e6;
    border: 2px solid #f59e0b;
}
.calendar-day.empty { background: #f8fafc; opacity: 0.6; }
.day-number {
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.edit-day-btn { background: none; border: none; color: #3b5bdb; font-size: 0.7rem; cursor: pointer; }
.jadwal-list {
    max-height: 100px;
    overflow-y: auto;
}
.jadwal-item {
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin: 2px 0;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}
.section-title { font-size: 0.7rem; font-weight: 600; margin-top: 6px; color: #475569; }
.tugas-list {
    max-height: 80px;
    overflow-y: auto;
}
.tugas-item-small {
    background: #fef9e3;
    color: #92400e;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.65rem;
    margin: 2px 0;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}
.empty-text { font-size: 0.65rem; color: #94a3b8; font-style: italic; }
.modal, .submodal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}
.modal-content, .submodal-content {
    background: white;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 500px;
    padding: 1.5rem;
}
.close-modal { float: right; font-size: 1.8rem; cursor: pointer; }
.modal-list { max-height: 200px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 8px; margin: 10px 0; }
.modal-list-item { display: flex; justify-content: space-between; padding: 6px; border-bottom: 1px solid #eee; }
.delete-item-btn { background: #fee2e2; border: none; color: #b91c1c; border-radius: 30px; padding: 2px 8px; cursor: pointer; }
.modal-add-btn { background: #3b5bdb; color: white; border: none; padding: 6px 12px; border-radius: 30px; cursor: pointer; }
input, textarea { width: 100%; padding: 8px; margin: 8px 0; border-radius: 1rem; border: 1px solid #cbd5e1; }
.cancel-submodal { background: #94a3b8; margin-left: 8px; }
@media (max-width: 700px) {
    .calendar-grid { gap: 6px; }
    .calendar-day { min-height: 150px; }
    .weekly-grid { grid-template-columns: 1fr; }
}