/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #DAF7A6 0%, #C8E6C9 100%);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.logo-container {
  margin-bottom: 20px;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #3498db;
  margin-bottom: 15px;
}

.year-badge {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 8px 25px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.special-tag {
  display: inline-flex;
  align-items: center;
  background: #2c3e50;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.tag-icon {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #f1c40f;
}

/* Login Section */
.login-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.login-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(to right, #3498db, #2c3e50);
  color: white;
  padding: 25px 30px;
  text-align: center;
}

.card-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.card-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.login-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 14px 20px;
  padding-right: 45px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  background-color: white;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.select-wrapper select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.select-wrapper i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  pointer-events: none;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 50px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
}

.toggle-password:hover {
  color: #3498db;
}

.form-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.button-group {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: linear-gradient(to right, #2ecc71, #27ae60);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #27ae60, #219653);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(to right, #c0392b, #a93226);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(231, 76, 60, 0.3);
}

.form-notice {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  margin-top: 20px;
}

.form-notice p {
  color: #e65100;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.card-footer {
  background: #f8f9fa;
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.card-footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-footer code {
  background: #e8f4fc;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: monospace;
  color: #2c3e50;
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  padding: 25px;
  color: #2c3e50;
  font-size: 1.05rem;
}

.footer p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-year {
  font-weight: 700;
  color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
  }
  
  .btn {
    min-width: 100%;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .login-form {
    padding: 25px 20px;
  }
  
  .card-header {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }
  
  .logo {
    width: 100px;
    height: 100px;
  }
  
  .special-tag {
    font-size: 1rem;
    padding: 10px 20px;
  }
  
  .card-header h3 {
    font-size: 1.5rem;
  }
  
  .footer p {
    flex-direction: column;
    gap: 5px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card {
  animation: fadeIn 0.8s ease-out;
}

.logo {
  animation: fadeIn 1s ease-out;
}

/* Styles tambahan untuk halaman input_kesiangan.php */

.error-alert {
  background: #ffe6e6;
  border: 2px solid #ff4444;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  margin: 50px auto;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.error-alert i {
  font-size: 4rem;
  color: #ff4444;
  margin-bottom: 20px;
}

.error-alert h3 {
  color: #c0392b;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.error-alert p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.main-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  overflow: hidden;
  max-width: 900px;
}

.card-header {
  background: linear-gradient(to right, #2c3e50, #34495e);
  color: white;
  padding: 25px 30px;
}

.card-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.info-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.highlight {
  color: #e74c3c;
  font-weight: 700;
}

.input-form {
  padding: 30px;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.form-section h3 {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.input-with-button {
  display: flex;
  gap: 10px;
}

.input-with-button input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-with-button input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-search {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-search:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.student-info {
  display: flex;
  gap: 30px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
  align-items: center;
}

.student-photo {
  flex-shrink: 0;
}

.student-img {
  width: 150px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.student-details {
  flex: 1;
}

.detail-item {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-value {
  font-size: 1.2rem;
}

.badge {
  background: #3498db;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 600;
}

.time-display {
  display: flex;
  gap: 40px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.time-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.time-label {
  font-size: 0.9rem;
  color: #7f8c8d;
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-value {
  font-size: 1.3rem;
  font-weight: 600;
}

.radio-group {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-option label {
  cursor: pointer;
  font-size: 0.95rem;
}

.rekap-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fc 100%);
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
}

.rekap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.rekap-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.rekap-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}

.rekap-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

.rekap-link {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rekap-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-large {
  padding: 18px 30px;
  font-size: 1.2rem;
  min-width: 280px;
}

.btn-outline {
  background: transparent;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 14px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline:hover {
  background: #3498db;
  color: white;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .student-info {
    flex-direction: column;
    text-align: center;
  }
  
  .detail-item {
    justify-content: center;
  }
  
  .time-display {
    flex-direction: column;
    gap: 20px;
  }
  
  .form-group-row {
    flex-direction: column;
  }
  
  .input-with-button {
    flex-direction: column;
  }
  
  .btn-search {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  .radio-row {
    justify-content: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-large {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .card-header, .input-form {
    padding: 20px;
  }
  
  .student-img {
    width: 120px;
    height: 150px;
  }
  
  .rekap-value {
    font-size: 1.5rem;
  }
}

/* Styles untuk halaman input pelanggaran */

.error-alert {
  background: #ffe6e6;
  border: 2px solid #ff4444;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  margin: 50px auto;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.error-alert i {
  font-size: 4rem;
  color: #ff4444;
  margin-bottom: 20px;
}

.error-alert h3 {
  color: #c0392b;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.error-alert p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.main-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  overflow: hidden;
  max-width: 900px;
}

.card-header {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
  padding: 25px 30px;
}

.card-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.info-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.input-form {
  padding: 30px;
}

/* Form Sections */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Elements */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-help {
  display: block;
  margin-top: 5px;
  color: #7f8c8d;
  font-size: 0.85rem;
  font-style: italic;
}

.input-with-button {
  display: flex;
  gap: 10px;
}

.input-with-button input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-with-button input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-search {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-search:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

/* Student Section */
.student-section {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
  border-radius: 12px;
  border-left: 4px solid #e74c3c;
  align-items: center;
}

.student-photo {
  flex-shrink: 0;
}

.student-img {
  width: 150px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.student-info {
  flex: 1;
}

.info-row {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-row .info-label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 120px;
  font-size: 1rem;
  opacity: 1;
}

.info-row .info-value {
  font-size: 1.2rem;
  color: #2c3e50;
}

.badge {
  background: #e74c3c;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Select Elements */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 14px 20px;
  padding-right: 45px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  background-color: white;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.select-wrapper select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.select-wrapper i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  pointer-events: none;
}

/* Textarea */
textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Rekap Section */
.rekap-section {
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  border-left: 4px solid #e74c3c;
}

.rekap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.rekap-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.rekap-item:hover {
  transform: translateY(-5px);
}

.rekap-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  min-height: 40px;
}

.rekap-value {
  font-size: 2rem;
  font-weight: 700;
  color: #e74c3c;
}

.rekap-link {
  color: #e74c3c;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rekap-link:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-large {
  padding: 18px 30px;
  font-size: 1.2rem;
  min-width: 280px;
}

.btn-primary {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #c0392b, #a93226);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:disabled {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled:hover {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: linear-gradient(to right, #3498db, #2980b9);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(to right, #2980b9, #1f639b);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 14px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline:hover {
  background: #3498db;
  color: white;
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.student-section {
  animation: fadeIn 0.5s ease-out;
}

.rekap-item {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .student-section {
      flex-direction: column;
      text-align: center;
  }
  
  .student-img {
      width: 120px;
      height: 150px;
  }
  
  .info-row {
      justify-content: center;
      text-align: center;
  }
  
  .input-with-button {
      flex-direction: column;
  }
  
  .btn-search {
      width: 100%;
      justify-content: center;
      padding: 12px;
  }
  
  .rekap-grid {
      grid-template-columns: 1fr;
  }
  
  .btn-large {
      width: 100%;
      min-width: auto;
  }
  
  .form-actions {
      flex-direction: column;
  }
  
  .info-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .card-header, .input-form {
      padding: 20px;
  }
  
  .student-img {
      width: 100px;
      height: 130px;
  }
  
  .rekap-value {
      font-size: 1.5rem;
  }
  
  .header-section .title {
      font-size: 1.8rem;
  }
  
  .header-section .subtitle {
      font-size: 1.2rem;
  }
}

/* Dropdown dengan search */
.dropdown-search {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border: 1px solid #ddd !important;
}

.dropdown-search:focus {
  outline: none;
  border-color: #3498db !important;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
}

/* Custom Dropdown Styles */
/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 5px;
}

.custom-dropdown-trigger {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  min-height: 52px;
}

.custom-dropdown-trigger:hover {
  border-color: #3498db;
}

.custom-dropdown-trigger.open {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.custom-dropdown-trigger i {
  color: #7f8c8d;
  transition: transform 0.3s ease;
}

.custom-dropdown-trigger.open i {
  transform: rotate(180deg);
}

.custom-dropdown-search-container {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 10px;
  background: white;
  border: 2px solid #3498db;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
}

.dropdown-search {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

.dropdown-search:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.custom-dropdown-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  margin-top: 5px;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.custom-dropdown-option {
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
}

.custom-dropdown-option:hover {
  background-color: #f5f5f5;
}

.custom-dropdown-option.selected {
  background-color: #e8f4fc;
  font-weight: 600;
}

.custom-dropdown-option.hidden {
  display: none;
}

.option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.option-text {
  flex: 1;
  word-wrap: break-word;
  word-break: break-word;
}

.option-points {
  background: #e74c3c;
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.custom-dropdown-option.selected .option-points {
  background: #c0392b;
}

/* Scrollbar styling */
.custom-dropdown-options::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 4px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb:hover {
  background: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-dropdown-options {
      max-height: 300px;
  }
  
  .custom-dropdown-option {
      padding: 14px 15px;
  }
  
  .option-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
  }
  
  .option-points {
      align-self: flex-start;
  }
}

/* Error states */
.error-state {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tombol disabled state */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Success state untuk dropdown setelah pilihan */
.custom-dropdown-trigger.valid {
  border-color: #2ecc71 !important;
}

/* Loading state untuk pencarian */
.loading {
  position: relative;
  pointer-events: none;
}

.loading:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}