* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #f5f5f5;
	padding: 20px;
}
  /* Style untuk Modal */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Latar belakang gelap transparan */
    z-index: 9999; /* Pastikan di paling atas */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
  }

  .modal-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.8);
    animation: scaleUp 0.3s 0.1s forwards;
  }

  .modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .modal-box h3 {
    margin-top: 0;
    color: #d9534f; /* Warna merah untuk urgensi */
  }

  .modal-box p {
    line-height: 1.5;
    color: #444;
    margin-bottom: 1rem;
  }

  #closeModalBtn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
  }
  
  #closeModalBtn:hover {
    background-color: #004494;
  }

  /* Animasi Masuk */
  @keyframes fadeIn { to { opacity: 1; } }
  @keyframes scaleUp { to { transform: scale(1); } }

.container {
	max-width: 100%; //1400px
	margin: 0 auto;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	overflow: hidden;
}

header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 30px;
	text-align: center;
}

header h1 {
	margin-bottom: 10px;
	font-size: 28px;
}

header p {
	opacity: 0.9;
	font-size: 14px;
}

.loading {
	text-align: center;
	padding: 60px 20px;
	font-size: 18px;
	color: #667eea;
}

.loading::after {
	content: '...';
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%, 20% { content: '.'; }
	40% { content: '..'; }
	60%, 100% { content: '...'; }
}

.form-container {
	padding: 40px;
	max-width: 800px;
	margin: 0 auto;
}

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
}

.date-range {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.btn-analyze {
	width: 100%;
	padding: 15px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
	margin-top: 10px;
}

.btn-analyze:hover {
	background: #5568d3;
}

.btn-analyze:active {
	transform: scale(0.98);
}

.results {
	padding: 40px;
	display: none;
}

.section-title {
	font-size: 24px;
	color: #333;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 3px solid #667eea;
}

.summary-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 30px;
	border-radius: 10px;
	margin-bottom: 30px;
}

.summary-card h3 {
	font-size: 20px;
	margin-bottom: 20px;
}

.summary-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.stat-item {
	background: rgba(255,255,255,0.1);
	padding: 15px;
	border-radius: 8px;
}

.stat-item .label {
	font-size: 13px;
	opacity: 0.9;
	margin-bottom: 5px;
}

.stat-item .value {
	font-size: 24px;
	font-weight: bold;
}

.prodi-card {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 20px;
}

.prodi-card h4 {
	color: #667eea;
	font-size: 18px;
	margin-bottom: 15px;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
	margin-bottom: 15px;
}

.info-item {
	padding: 12px;
	background: #f8f9fa;
	border-radius: 6px;
}

.info-item .label {
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.info-item .value {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.clickable {
	//color: #667eea;
	cursor: pointer;
	text-decoration: underline;
}

.clickable:hover {
	color: green; //#5568d3
}

.distribution {
	margin-top: 15px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	color: #666;
}

.distribution h5 {
	font-size: 14px;
	margin-bottom: 10px;
	//color: #666;
}

.dist-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #e0e0e0;
}

.dist-item:last-child {
	border-bottom: none;
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 1000;
	overflow: auto;
}

.modal-content {
	background: white;
	margin: 50px auto;
	padding: 0;
	width: 95%;
	max-width: 95%; //1200px
	border-radius: 10px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 20px 30px;
	background: #667eea;
	color: white;
	border-radius: 10px 10px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	margin: 0;
}

.close-modal {
	font-size: 28px;
	font-weight: bold;
	color: white;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.close-modal:hover {
	opacity: 0.8;
}

.modal-body {
	padding: 30px;
	overflow-y: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

th {
	background: #f8f9fa;
	padding: 12px 10px;
	text-align: left;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #dee2e6;
	position: sticky;
	top: 0;
	z-index: 10;
}

td {
	padding: 10px;
	border-bottom: 1px solid #f0f0f0;
}

tr:hover {
	background: #f8f9ff;
}

.btn-export {
	padding: 10px 20px;
	background: #28a745;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	margin-top: 10px;
}

.btn-export:hover {
	background: #218838;
}

@media (max-width: 768px) {
	.date-range {
		grid-template-columns: 1fr;
	}

	.summary-stats {
		grid-template-columns: 1fr;
	}

	.info-grid {
		grid-template-columns: 1fr;
	}
}