.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	background: white;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	border-bottom: 2px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-radius: 0;
	margin: 0;
}

.slide {
    will-change: transform;
    transform: translateZ(0);
}

.header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo {
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.school-info {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.school-name {
	font-weight: 700;
	font-size: 15px;
	color: #1d4ed8;
}

.school-tagline {
	font-size: 12px;
	color: #666;
}

.school-sub {
	font-size: 13px;
	color: #1d4ed8;
	font-weight: 600;
	letter-spacing: 1px; /* 🔥 biar elegan */
}

/* LOGOUT BUTTON */
.btn-logout {
	background: #ef4444;
	color: white;
	padding: 8px 12px;
	border-radius: 10px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
}

.btn-logout img {
	width: 18px;
	height: 18px;
}

.btn-logout:hover {
	background: #dc2626;
}

.skl-container {
	display: flex;
	gap: 10px;
	padding: 15px;
	max-width: 100%;   /* 🔥 batas lebar */
	margin: 5px auto;   /* 🔥 center */
}

.skl-left {
	flex: 0.6;
	background: white;
	padding: 20px;
	border-radius: 20px;
}

.skl-right {
	flex: 1.8; /* 🔥 lebih dominan tapi gak lebay */
	background: #f8fafc;
	padding: 20px;
	border-radius: 20px;
	overflow: hidden;
}

body {
	background: #eef2ff;
}

.skl-left,
.skl-right {
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 10px;
}

.gallery img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 12px;
	transition: 0.3s;
	cursor: pointer;
}

.gallery img:hover {
	transform: scale(1.08);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-download {
	display: block;
	background: #1d4ed8;
	color: white;
	padding: 10px;
	border-radius: 10px;
	text-decoration: none;
	margin-top: 10px;
	text-align: center;
}

.btn-download:hover {
	background: #1e40af;
}

.btn-upload {
	display: block;
	background: #10b981;
	color: white;
	padding: 10px;
	border-radius: 10px;
	text-decoration: none;
	margin-top: 10px;
	text-align: center;
}

.btn-upload:hover {
	background: #059669;
}

/* MODAL */
.modal {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	justify-content: center;
	align-items: center;
	z-index: 999;
}

.modal-content {
	background: white;
	padding: 25px;
	border-radius: 15px;
	width: 90%;
	max-width: 350px;
	text-align: center;
	animation: fadeIn 0.3s ease;
}

.modal-content input {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.btn-close {
	background: #ef4444;
	color: white;
	padding: 10px;
	border: none;
	border-radius: 10px;
	margin-top: 10px;
	width: 100%;
	cursor: pointer;
}

.note {
	font-size: 12px;
	color: #666;
	margin-top: 10px;
}

.guide {
	text-align: left;
	font-size: 13px;
	color: #555;
	margin: 10px 0;
	padding-left: 18px;
}

.guide li {
	margin-bottom: 5px;
}

.note-up {
	font-size: 12px;
	color: #888;
	margin-top: 8px;
	font-style: italic;
}
.btn-up,
.btn-close {
	display: block;
	width: 100%;
	padding: 10px;
	border-radius: 10px;
	text-align: center;
	font-weight: 600;
	cursor: pointer;
	border: none;
	margin-top: 10px;
	transition: 0.2s;
}

/* Upload (ijo) */
.btn-up {
	background: #10b981;
	color: white;
}

.btn-up:hover {
	background: #059669;
}

/* Batal (merah soft) */
.btn-close {
	background: #ef4444;
	color: white;
}

.btn-close:hover {
	background: #dc2626;
}
/* SLIDESHOW */
.slideshow {
	position: relative;
	width: 100%;
	height: 320px;
	border-radius: 15px;
	overflow: hidden;
	contain: layout paint;
}

.slide {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease;
	display: flex;              /* 🔥 penting */
	justify-content: center;    /* center horizontal */
	align-items: center;  
}

.slide.active {
	opacity: 1;
}

/* FOTO UTAMA */
.slide img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: contain;
	z-index: 2;
	max-width: 100%;   /* 🔥 ganti dari width */
	max-height: 100%; 
}

/* BACKGROUND BLUR */
.slide .bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	filter: blur(20px) brightness(0.6);
	transform: scale(1.1);
	z-index: 1;
}

/* THUMBNAIL */
.thumbs {
	max-width: 100%;    
	display: flex;
	overflow-x: auto;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 8px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
	cursor: grab;
	justify-content: flex-start;
}

.thumbs img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	opacity: 0.7;
	transition: 0.2s;
	min-width: 70px;
	border: 2px solid transparent;
	flex-shrink: 0;
}

/* ACTIVE THUMB */
.thumbs img.active-thumb {
	border: 2px solid #3b82f6;
	opacity: 1;
	cursor: grabbing;
}

.info {
	margin: 15px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.info-item {
	background: #f9fafb;
	padding: 10px 12px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 10px; 
	border-left: 4px solid #3b82f6;
}

.label {
	min-width: 60px; 
	font-size: 14px;
	color: #666;
}

.value {
	font-size: 14px;
	font-weight: 600;
	color: #111;
}

.info-item:hover {
	background: #eef2ff;
	transform: translateY(-1px);
	transition: 0.2s;
}

.music-player {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.15);;
	color: white;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: grab;
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
	z-index: 9999;
	user-select: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.music-player:active {
	cursor: grabbing;
	transform: scale(1.1);
	box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


@media (max-width: 768px) {
	.skl-container {
		flex-direction: column;
	}

	.skl-right {
		order: -1;
	}

	.skl-right {
		margin-bottom: 15px;
	}

	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.header {
		flex-direction: row; /* 🔥 tetap sejajar */
		align-items: center;
		gap: 10px;
	}

	.school-name {
		font-size: 13px;
	}

	.school-tagline {
		font-size: 11px;
	}

	.logo {
		width: 40px;
		height: 40px;
	}

	.btn-logout img {
		width: 16px;
		height: 16px;
	}
	
	.logout-text {
		display: none;
	}
	.skl-left {
		padding: 20px;
	}

	.skl-right {
		padding: 20px;
	}
	.thumbs {
		gap: 3px;
	}
}
.toast-notif {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 99999;

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
}

.toast-notif.show {
    opacity: 1;
    transform: translateY(0);
}
.tahun-filter{
	margin-bottom:18px;
}

.filter-label{
	display:block;
	margin-bottom:8px;
	font-size:13px;
	font-weight:600;
	color:#666;
}

.select-wrap{
	position:relative;
	width:100%;
}

.select-wrap select{
	width:100%;
	padding:12px 45px 12px 16px;

	border-radius:14px;
	border:1px solid #e5e7eb;

	background:#fff;

	font-size:14px;
	font-weight:500;
	color:#222;

	outline:none;
	cursor:pointer;

	appearance:none;
	-webkit-appearance:none;
	-moz-appearance:none;

	transition:0.2s;
	box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.select-wrap select:hover{
	border-color:#2563eb;
}

.select-wrap select:focus{
	border-color:#2563eb;
	box-shadow:0 0 0 4px rgba(37,99,235,0.12);
}

.select-arrow{
	position:absolute;
	right:16px;
	top:50%;
	transform:translateY(-50%);
	pointer-events:none;

	font-size:18px;
	color:#666;
}