/* LAYOUT UTAMA */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f6; 
    margin: 0; padding: 0; min-height: 100vh;
    display: flex; justify-content: center; align-items: flex-start;
    padding-top: 40px; padding-bottom: 40px;
}
.container {
    width: 90%; max-width: 1200px;
    background: white; padding: 30px; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex; flex-direction: column; min-height: 85vh;
}

/* HEADER */
header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0;
}
.header-left h1 { margin: 0; color: #2c3e50; font-size: 28px; letter-spacing: -0.5px; }
.header-left p { margin: 5px 0 0; color: #7f8c8d; font-size: 15px; }

.date-widget {
    text-align: right; background: #f4f9ff; padding: 12px 25px;
    border-radius: 12px; border-right: 5px solid #0088cc;
}
.current-day { font-size: 20px; font-weight: 800; color: #0088cc; text-transform: uppercase; margin-bottom: 2px; }
.current-date { font-size: 14px; color: #666; font-weight: 500; }

/* NAVIGASI */
.main-nav { display: flex; gap: 15px; margin-bottom: 25px; background: #f8f9fa; padding: 8px; border-radius: 12px; }
.nav-btn {
    flex: 1; border: none; background: transparent; padding: 14px;
    cursor: pointer; font-size: 15px; font-weight: bold; color: #95a5a6;
    border-radius: 8px; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.nav-btn:hover { background: #ecf0f1; color: #34495e; }
.nav-btn.active { background: white; color: #0088cc; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* KALENDER */
.view-section { flex-grow: 1; display: flex; flex-direction: column; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.toolbar h2 { font-size: 22px; color: #34495e; margin: 0; font-weight: 700; }

.calendar-days-header {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
    margin-bottom: 12px; text-align: center; padding-right: 5px;
}
.calendar-days-header div {
    font-weight: 700; color: #95a5a6; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;
}
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; flex-grow: 1;
}

.day-box {
    background: #fff; border: 1px solid #e0e0e0; min-height: 130px;
    padding: 10px; border-radius: 10px; cursor: pointer;
    transition: all 0.2s ease; position: relative;
    display: flex; flex-direction: column; gap: 5px;
}
.day-box:hover {
    background-color: #fbfdff; border-color: #3498db;
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}
.day-number {
    font-weight: bold; color: #bdc3c7; font-size: 16px; margin-bottom: 4px; display: block;
}
.day-box.today { background-color: #fff9e6; border: 2px solid #f1c40f; }
.day-box.today .day-number { color: #d35400; font-size: 18px; }
.today-badge {
    position: absolute; top: 8px; right: 8px; font-size: 9px;
    font-weight: bold; background: #f1c40f; color: #fff;
    padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
}

/* JOB CHIP */
.job-chip {
    background-color: #e3f2fd; color: #1565c0; padding: 6px 10px;
    border-radius: 6px; font-size: 11px; border-left: 3px solid #1565c0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-weight: 600; cursor: pointer; transition: 0.2s;
}
.job-chip:hover { background-color: #1565c0; color: white; }
.job-chip.done {
    background-color: #e8f5e9; color: #2e7d32; border-left: 3px solid #2e7d32;
    text-decoration: line-through; opacity: 0.8;
}

/* MODAL & FORM */
.pkg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.package-card { border: 1px solid #eee; padding: 25px; border-radius: 12px; background: white; transition: 0.2s; }
.package-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: #3498db; }
.pkg-title { font-size: 18px; font-weight: bold; color: #2c3e50; display: block; margin-bottom: 5px; }
.pkg-count { font-size: 13px; color: #95a5a6; display: block; margin-bottom: 15px; }

.btn-edit-pkg { width: 100%; padding: 10px; background: #ecf0f1; border: none; color: #7f8c8d; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-edit-pkg:hover { background: #3498db; color: white; }
.btn-add-pkg { background: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; display: flex; gap: 8px; align-items: center; }

.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content { background-color: #fff; margin: 5vh auto; padding: 30px; border-radius: 12px; width: 90%; max-width: 480px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); animation: slideDown 0.3s; }
@keyframes slideDown { from {transform: translateY(-30px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }
.close-btn { float: right; font-size: 24px; cursor: pointer; color: #ccc; }

.form-group { margin-bottom: 18px; }
.form-group label { font-weight: 600; color: #34495e; margin-bottom: 8px; display: block; font-size: 14px; }
input[type="text"], select { width: 100%; padding: 12px; border: 1px solid #dfe6e9; border-radius: 8px; box-sizing: border-box; font-size: 14px; background: #fdfdfd; }
input[type="text"]:focus, select:focus { border-color: #3498db; outline: none; background: white; }

.task-container { max-height: 200px; overflow-y: auto; background: #f8f9fa; border: 1px solid #eee; border-radius: 8px; padding: 12px; }
.task-item { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid #f1f1f1; background: white; margin-bottom: 6px; border-radius: 6px; }
.task-item input[type="checkbox"] { width: 16px; height: 16px; margin-right: 12px; accent-color: #3498db; cursor: pointer; }
.task-item span { flex: 1; font-size: 13px; color: #555; }
.task-item.completed span { text-decoration: line-through; color: #b2bec3; }

.modal-buttons { display: flex; justify-content: space-between; margin-top: 25px; pt: 20px; border-top: 1px solid #f1f1f1; }
.btn-save { background: #27ae60; color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; }
.btn-delete { background: #e74c3c; color: white; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; display: none; }
.btn-add-task { background: #f39c12; color: white; border: none; padding: 0 15px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 12px; }
.add-task-group { display: flex; gap: 8px; margin-top: 8px; }
.btn-delete-task { color: #e74c3c; background: none; border: none; cursor: pointer; font-size: 16px; }
.btn-notify { background-color: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; display: flex; gap: 8px; align-items: center; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); }