/* ==========================================================================
   SISTEM SEMAKAN GPS PINTAR BMJ 2026 - MAIN STYLESHEET
   ========================================================================== */

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6f9; padding: 20px; color: #333; margin: 0; min-height: 100vh; }

/* Containers */
.container { margin: auto; background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.container-index { max-width: 650px; }
.container-report { max-width: 1000px; padding: 25px; }
.container-dashboard { max-width: 1300px; background: transparent; padding: 0; box-shadow: none; }

/* Headers */
.header-flex { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #3498db; padding-bottom: 15px; margin-bottom: 20px; }
.header-flex h2 { color: #2c3e50; margin: 0; font-size: 24px; }
.header { background: linear-gradient(135deg, #004085 0%, #1f618d 100%); color: white; padding: 20px 30px; border-radius: 12px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.header h1, .header h2 { margin: 0; font-size: 22px; }

/* Status Labels & Standby */
.status-container { display: flex; align-items: center; }
.status-label { font-size: 13px; font-weight: bold; color: #7f8c8d; margin-right: 8px; }
.btn-standby { background-color: #6c757d; color: #ffffff; border: none; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,0.1); cursor: default; }

/* Buttons */
.btn-dashboard-link, .btn-dashboard { background-color: #004085; color: white; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; box-shadow: 0 3px 6px rgba(0, 64, 133, 0.2); }
.btn-dashboard { display: block; text-align: center; padding: 15px; border-radius: 8px; font-size: 16px; margin-bottom: 25px; border: 2px solid #004085; }
.btn-dashboard-link:hover, .btn-dashboard:hover { background-color: #002d5e; transform: translateY(-1px); color: white; }
.btn-export { padding: 8px 15px; border-radius: 6px; border: none; cursor: pointer; font-weight: bold; font-size: 12px; color: white; text-decoration: none; transition: 0.2s;}
.btn-export:hover { filter: brightness(1.1); }
.btn-map { background: #2980b9; color: white; border: none; padding: 8px 12px; border-radius: 5px; text-decoration: none; font-size: 12px; font-weight: bold; }
.btn-back { display: inline-block; background: white; color: #004085; padding: 8px 15px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 13px; }
.btn-search { background: #27ae60; color: white; border: none; padding: 12px 25px; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; height: 44px; transition: 0.2s; box-shadow: 0 4px 6px rgba(39, 174, 96, 0.3); white-space: nowrap; }
.btn-search:hover { background: #219653; transform: translateY(-2px); }
.btn-override { background: #e67e22; color: white; border: none; padding: 12px 25px; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 6px rgba(230, 126, 34, 0.3); margin-top: 15px; }
.btn-override:hover { background: #d35400; }
.btn-submit-form { background-color: #2980b9; color: white; padding: 15px; border: none; width: 100%; border-radius: 6px; font-size: 16px; font-weight: bold; margin-top: 30px; cursor: pointer; transition: background 0.3s; }
.btn-submit-form:hover { background-color: #1f618d; }

/* Form Elements */
label { font-weight: bold; display: block; margin-top: 15px; color: #34495e; }
select, input[type="file"], input[type="number"], input[type="date"], textarea { width: 100%; padding: 12px; margin-top: 8px; border: 1px solid #bdc3c7; border-radius: 6px; box-sizing: border-box; font-size: 14px; transition: 0.3s; font-weight: bold; color: #2c3e50; background: #f8f9fa; outline: none; }
select:focus, input:focus, textarea:focus { border-color: #004085; box-shadow: 0 0 5px rgba(0,64,133,0.3); }
.readonly-input { background-color: #f8f9fa; border: 1px solid #dcdde1; color: #2f3640; }
.info-box { background-color: #e8f4f8; padding: 15px; border-left: 4px solid #3498db; border-radius: 4px; margin-bottom: 20px; font-size: 14px; color: #2c3e50; }

/* Filters & Panels (Dashboard) */
.filter-form, .override-form-container { background: white; padding: 20px 25px; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); align-items: flex-end; border-top: 4px solid #2980b9; }
.override-form-container { border-top-color: #e67e22; display: block; }
.filter-group { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.filter-group label { font-size: 13px; font-weight: bold; color: #34495e; margin-bottom: 8px; margin-top: 0; }
summary.override-summary { font-weight: bold; color: #e67e22; cursor: pointer; padding: 12px 20px; background: #fff5eb; border-radius: 8px; margin-bottom: 25px; border: 1px solid #fde3cf; outline: none; display: flex; align-items: center; gap: 10px; }

/* Stats Cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 25px; }
.card { background: #fff; padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #eee; border-bottom: 4px solid #bdc3c7; }

/* Day List & Rows (Reports) */
.day-row { border: 1px solid #eee; border-radius: 10px; padding: 20px; display: flex; align-items: center; justify-content: space-between; border-left: 8px solid; margin-bottom: 15px; background: white; }
.badge { padding: 6px 15px; border-radius: 20px; font-weight: bold; color: white; font-size: 11px; display: inline-block;}
.poi-badge { font-size: 11px; padding: 5px 8px; border-radius: 4px; margin-top: 5px; display: inline-block; font-weight: bold; }
.failed-time-box { margin-top: 12px; background: #f8f9fa; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; }
.time-badge { display:inline-block; padding:3px 7px; border-radius:4px; margin-top:6px; margin-right:5px; font-size:11px; font-weight:bold; }
.missing-dates-alert { background-color: #fff3f3; border-left: 5px solid #e74c3c; padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.missing-dates-title { margin-top: 0; color: #c0392b; font-size: 15px; margin-bottom: 10px; }
.missing-badge { background: #e74c3c; color: white; padding: 5px 12px; border-radius: 15px; font-size: 11px; font-weight: bold; box-shadow: 0 2px 4px rgba(231,76,60,0.3); }

/* Operator & Calendar Grid (Dashboard) */
.operator-section { background: white; border-radius: 12px; padding: 25px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #004085; }
.operator-title { color: #004085; border-bottom: 2px solid #ecf0f1; padding-bottom: 10px; margin-top: 0; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.mini-calendar { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fafafa;}
.route-header { background: #ecf0f1; padding: 10px; font-weight: bold; font-size: 14px; color: #2c3e50; border-bottom: 1px solid #e0e0e0;}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 10px; }
.cal-head { font-size: 10px; font-weight: bold; text-align: center; color: #7f8c8d; margin-bottom: 5px; }
.cal-day { aspect-ratio: 1; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; background: #fff; border: 1px solid #eee; transition: 0.2s; cursor: pointer;}
.cal-day:hover:not(.empty-day):not(.future-day) { transform: scale(1.1); box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 10; }

/* Status Colors */
.status-complete { background: #2ecc71; color: white; border-color: #27ae60; }
.status-incomplete { background: #f1c40f; color: white; border-color: #f39c12; }
.status-nodata { background: #e74c3c; color: white; border-color: #c0392b; }
.status-override { background: #5DADE2; color: white; border-color: #3498DB; }
.empty-day { background: transparent; border: none; cursor: default !important; }
.future-day { color: #bdc3c7; cursor: default !important; background: transparent; border-color: #ecf0f1; }
.dimmed { opacity: 0.12 !important; filter: grayscale(100%); }
.no-data-msg { text-align:center; padding: 40px; background:white; border-radius:12px; color:#7f8c8d; border: 2px dashed #bdc3c7;}

/* WARNA KHAS CUTI SEKOLAH */
.status-cuti { background: #9F2B68 !important; color: white; border-color: #8e44ad; }
.bg-cuti { background: linear-gradient(135deg, ##9F2B68, ##9F2B68); color: white; }
.status-cuti.dimmed { opacity: 0.12 !important; filter: grayscale(100%); }


/* Modal Popup */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); }
.modal-content { background-color: #fff; margin: 8% auto; border-radius: 16px; width: 90%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative; animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { background: linear-gradient(135deg, #004085 0%, #1f618d 100%); padding: 20px 25px; color: white; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.close-btn { color: rgba(255,255,255,0.7); font-size: 26px; font-weight: bold; cursor: pointer; line-height: 1; }
.close-btn:hover { color: #fff; }
.modal-body { padding: 25px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed #e2e8f0; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { color: #64748b; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.info-value { font-weight: 700; color: #1e293b; font-size: 15px; }
.bg-complete { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.bg-incomplete { background: linear-gradient(135deg, #f1c40f, #f39c12); color: #fff; }
.bg-nodata { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.bg-override { background: linear-gradient(135deg, #5DADE2, #3498DB); }
.btn-map-modal { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; background: #2980b9; color: white; padding: 14px; border-radius: 10px; text-decoration: none; font-weight: bold; margin-top: 25px; transition: 0.2s; box-shadow: 0 4px 15px rgba(41, 128, 185, 0.3); font-size: 15px; }
.btn-map-modal:hover { background: #1f618d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(41, 128, 185, 0.4);}
.alert-success { background: #d4efdf; color: #1e8449; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; border: 1px solid #c3e6cb; display: flex; align-items: center; gap: 10px; }

@media print { .btn-export, .btn-map, .btn-back, .btn-dashboard, .filter-form, details { display: none !important; } .container, .container-report { box-shadow: none; padding: 0; } }



