* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
	background-color: var(--bg-page);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 20 L80 60 L40 80 L0 60 L0 20 Z' fill='none' stroke='%231a6b3c' stroke-width='0.4' opacity='0.18'/%3E%3Cpath d='M40 15 L65 27.5 L65 52.5 L40 65 L15 52.5 L15 27.5 Z' fill='none' stroke='%23b8860b' stroke-width='0.4' opacity='0.15'/%3E%3Ccircle cx='40' cy='40' r='6' fill='none' stroke='%231a6b3c' stroke-width='0.4' opacity='0.12'/%3E%3C/svg%3E");
	min-height: 100vh;
	padding: 20px;
	transition: background-color 0.3s, color 0.3s;
	color: var(--clr-text);
}

html.dark body {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 20 L80 60 L40 80 L0 60 L0 20 Z' fill='none' stroke='%233db870' stroke-width='0.4' opacity='0.1'/%3E%3Cpath d='M40 15 L65 27.5 L65 52.5 L40 65 L15 52.5 L15 27.5 Z' fill='none' stroke='%23d4a829' stroke-width='0.4' opacity='0.1'/%3E%3Ccircle cx='40' cy='40' r='6' fill='none' stroke='%233db870' stroke-width='0.4' opacity='0.08'/%3E%3C/svg%3E");
}

/* Holiday checkbox — dark mode override */
html.dark .holiday-check-row {
	background: #2a2000 !important;
	border-color: #7a5c00 !important;
}
html.dark .holiday-check-row label {
	color: #f5d040 !important;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: var(--bg-container);
	border-radius: 16px;
	box-shadow: var(--shadow-container);
	overflow: hidden;
	border: 1px solid var(--bdr-color);
	transition: background 0.3s, border-color 0.3s;
}

/* ===== ORNAMENTAL TOP BORDER ===== */
.container::before {
	content: '';
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold), var(--clr-primary), var(--clr-gold), var(--clr-primary));
}

.header {
	background: var(--bg-header);
	color: white;
	padding: 22px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	overflow: hidden;
}

/* Subtle geometric overlay on header */
.header::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5 L55 17.5 L55 42.5 L30 55 L5 42.5 L5 17.5 Z' fill='none' stroke='white' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
	pointer-events: none;
}

.header h1 {
	font-family: 'Cairo', sans-serif;
	font-size: 22px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 0.3px;
	position: relative;
	z-index: 1;
}

.header h1 .subtitle {
	display: block;
	font-size: 11px;
	font-weight: 400;
	opacity: 0.75;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 2px;
	font-family: 'Cairo', sans-serif;
}

.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	position: relative;
	z-index: 1;
}

.header-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 50%;
	width: 34px; height: 34px;
	color: white;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	flex-shrink: 0;
}
.theme-toggle:hover {
	background: rgba(255,255,255,0.27);
}
.theme-toggle .icon-light { display: inline-flex; }
.theme-toggle .icon-dark  { display: none; }
html.dark .theme-toggle .icon-light { display: none; }
html.dark .theme-toggle .icon-dark  { display: inline-flex; }

.fullscreen-btn-header {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    width: 34px;
    height: 34px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.fullscreen-btn-header:hover {
    background: rgba(255,255,255,0.25);
}

/* ===== STATUS LED INDICATOR ===== */
.status-led {
	width: 14px; height: 14px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	position: relative;
	cursor: default;
}
/* Green pulse — aktif */
.status-led.led-active {
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
	animation: led-pulse 2s ease-in-out infinite;
}
@keyframes led-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
	70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
	100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
/* Yellow blink — bermasalah / pause */
.status-led.led-warn {
	background: #f59e0b;
	animation: led-blink 0.8s step-start infinite;
}
@keyframes led-blink {
	0%,100% { opacity: 1; }
	50%     { opacity: 0.15; }
}
/* Red solid — nonaktif */
.status-led.led-off {
	background: #ef4444;
	box-shadow: 0 0 6px rgba(239,68,68,0.5);
	animation: none;
}

.tabs {
	display: flex;
	background: var(--bg-tabs);
	border-bottom: 2px solid var(--bdr-tabs);
	overflow-x: auto;
	scrollbar-width: thin;
	flex-wrap: nowrap;
	transition: background 0.3s, border-color 0.3s;
}

.tab {
	padding: 13px 20px;
	cursor: pointer;
	border: none;
	background: none;
	font-size: 13px;
	font-family: 'Cairo', sans-serif;
	font-weight: 600;
	color: var(--clr-text-muted);
	transition: all 0.25s;
	white-space: nowrap;
	flex-shrink: 0;
	border-bottom: 3px solid transparent;
}

.tab:hover { background: var(--bdr-color); color: var(--clr-primary); }

.tab.active {
	background: var(--bg-tab-active);
	color: var(--clr-primary);
	font-weight: 700;
	border-bottom: 3px solid var(--clr-gold);
}

.content { padding: 24px 30px; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== BUTTONS ===== */
.btn {
	padding: 9px 18px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	font-family: 'Cairo', sans-serif;
	transition: all 0.25s;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.btn-primary  { background: var(--clr-primary); color: white; }
.btn-primary:hover { background: var(--clr-primary-dk); transform: translateY(-1px); }
.btn-success  { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger   { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #4b6357; color: white; }
.btn-secondary:hover { background: #374a40; }
.btn-warning  { background: var(--clr-gold); color: white; }
.btn-warning:hover { background: #92680a; }

