* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { height: 100%; font-family: Arial, sans-serif; background: #F0F2F5; }
#app { height: 100%; display: flex; flex-direction: column; background: #FFF; }
/* Login Screen */
.login-screen { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%); }
.login-box { background: #FFF; padding: 2.5rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); width: 90%; max-width: 400px; text-align: center; }
.login-box h2 { color: #1D4ED8; margin-bottom: 1.5rem; font-size: 1.8rem; }
.login-box .subtitle { color: #64748B; margin-bottom: 2rem; font-size: 0.95rem; }
.login-box input { width: 100%; padding: 1rem; margin: 1rem 0; border-radius: 10px; border: 2px solid #E2E8F0; font-size: 1.1rem; text-align: center; }
.login-box input:focus { outline: none; border-color: #1D4ED8; }
.login-box button { width: 100%; padding: 1rem; background: #1D4ED8; color: #FFF; border: none; border-radius: 10px; font-size: 1.1rem; cursor: pointer; margin-top: 1rem; }
.login-box button:hover { background: #1E40AF; }
.login-error { color: #DC2626; margin-top: 1rem; font-size: 0.9rem; }
.admin-info { background: #F1F5F9; padding: 1rem; border-radius: 8px; margin-top: 1.5rem; font-size: 0.85rem; color: #475569; }
header { background: #1D4ED8; color: #FFF; padding: 0rem 1rem; text-align: center; font-size: 1.4rem; display: flex; justify-content: space-between; align-items: center; }
header button { background: none; border: none; color: #FFF; font-size: 1.5rem; cursor: pointer; padding: 0.5rem 1rem; }
.header-title { flex: 1; font-size: 14.9px; }
.menu-btn { background: #2563EB; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.7rem; margin-left: 0.5rem; }
.logout-btn { background: #DC2626; padding: 0.5rem 0.5rem 0.5rem 0rem; border-radius: 8px; font-size: 0.9rem; margin-left: 7.5px; }
.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: #1E40AF; color: #FFF; font-weight: bold; }
.weekdays div { padding: 0.4rem 0; text-align: center; font-size: 0.9rem; width: 0px; }
.days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; background: #E5E7EB; padding: 5px; grid-auto-rows: minmax(120px, 1fr); overflow-y: auto; }
.day { background: #FFF; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; overflow: hidden; cursor: pointer; position: relative; }
.day-header { padding: 1px 8px; text-align: right; font-weight: bold; background: #F8FAFC; font-size: 0.95rem; }
.day.other-month .day-header { color: #BBB; }
.day.today .day-header { background: #3B82F6; color: #FFF; }
.slots { flex: 1; display: grid; grid-template-rows: repeat(13, 1fr); font-size: 0.65rem; position: relative; }
.slot { padding-left: 28px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 4.95px; }
.slot-label { position: absolute; left: 4px; top: 2px; color: #64748B; font-weight: normal; width: 22px; }
.booking-block { position: absolute; left: 0; right: 0; background:var(--warna); color: #FFF; padding: 2px 4px; font-size: 0.58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 3px; opacity: 0.92; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.modal { position: fixed; inset:0; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-content { background: #FFF; padding: 1.8rem; border-radius: 14px; width: 94%; max-width: 540px; max-height: 92vh; overflow-y: auto; }
.close { float: right; font-size: 2rem; cursor: pointer; line-height: 1; }
h3 { margin-bottom: 1rem; clear: both; }
label { display: block; margin-top: 0.8rem; font-weight: bold; color: #374151; }
input, select, textarea { width: 100%; padding: 0.8rem; margin: 0.5rem 0; border-radius: 8px; border: 1px solid #CCC; font-family: inherit; }
textarea { min-height: 80px; resize: vertical; }
button.primary { background: #1D4ED8; color: #FFF; padding: 1rem; border: none; border-radius: 8px; margin-top: 1rem; cursor: pointer; font-size: 1.1rem; width: 100%; }
button.primary:hover { background: #1E40AF; }
button.danger { background: #DC2626; }
button.danger:hover { background: #B91C1C; }
.color-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0; }
.color-option { width: 100%; height: 40px; border-radius: 8px; cursor: pointer; border: 3px solid #FFF; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); }
.color-option.selected { border: 3px solid #000; }
.photo-section { margin: 1rem 0; }
.photo-upload { display: flex; gap: 1rem; margin-bottom: 1rem; }
.upload-box { flex: 1; border: 2px dashed #CCC; border-radius: 8px; padding: 1rem; text-align: center; cursor: pointer; }
.upload-box:hover { border-color: #1D4ED8; background: #F0F9FF; }
.upload-box input[type="file"] { display: none; }
.photo-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.photo-preview img { width: 100%; border-radius: 8px; border: 2px solid #DDD; }
.photo-item { position: relative; }
.photo-label { font-size: 0.75rem; color: #64748B; margin-top: 0.3rem; text-align: center; }
.recurring-section { background: #F8FAFC; padding: 1rem; border-radius: 8px; margin: 1rem 0; }
.recurring-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; margin: 0.5rem 0; }
.quick-templates { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.template-btn { background: #F1F5F9; border: 1px solid #CBD5E1; padding: 0.5rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; text-align: center; }
.template-btn:hover { background: #E2E8F0; }
