/* Base Styles - List Peserta */
.page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
}

/* Page Header */
.page-header {
  padding: 10px 0;
}

.page-title {
  color: white;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-title i {
  margin-right: 10px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

.btn-back {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
  background: white;
  color: #667eea;
  transform: translateX(-5px);
}

/* Stats Cards */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 24px;
  color: white;
}

.stat-total .stat-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-info-card .stat-icon {
  background: linear-gradient(135deg, #5d87ff, #4169e1);
}

.stat-success .stat-icon {
  background: linear-gradient(135deg, #13deb9, #00bfa5);
}

.stat-warning .stat-icon {
  background: linear-gradient(135deg, #facd68, #fc766a);
}

.stat-danger .stat-icon {
  background: linear-gradient(135deg, #fa896b, #ff5b5b);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Card */
.content-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease forwards;
}

.content-card-header {
  background: linear-gradient(135deg, #ffae1f, #ff9800);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.header-title i {
  font-size: 22px;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-action-outline {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-action-outline:hover {
  background: white;
  color: #ff9800;
}

.btn-action-primary {
  background: white;
  color: #ff9800;
}

.btn-action-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.btn-action-excel {
  background: #217346;
  color: white;
}

.btn-action-excel:hover {
  background: #1a5c38;
  transform: translateY(-2px);
  color: white;
}

.btn-action-pdf {
  background: #dc3545;
  color: white;
}

.btn-action-pdf:hover {
  background: #c82333;
  transform: translateY(-2px);
  color: white;
}

.btn-icon-only {
  padding: 10px 14px;
  min-width: 44px;
  justify-content: center;
}

.btn-icon-only i {
  font-size: 18px;
}

.content-card-body {
  padding: 25px;
}

/* Filter Section */
.filter-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}

.filter-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.filter-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
}

.btn-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #e0e0e0;
  color: #666;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-filter-reset:hover {
  background: #d0d0d0;
  color: #333;
}

/* Table Modern */
.table-modern {
  width: 100%;
  border-collapse: collapse;
}

.table-modern th {
  background: #f8f9fa;
  padding: 15px 12px;
  text-align: left;
  font-weight: 700;
  color: #1a1a2e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e0e0e0;
}

.th-center {
  text-align: center;
}

.table-modern td {
  padding: 15px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #333;
  vertical-align: middle;
}

.td-center {
  text-align: center;
}

.table-modern tbody tr {
  transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
  background: #f8f9fa;
}

.table-row-animate {
  animation: fadeIn 0.3s ease forwards;
}

/* Athlete Info */
.athlete-info {
  display: flex;
  flex-direction: column;
}

.athlete-name {
  font-weight: 600;
  color: #1a1a2e;
}

.athlete-meta {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.date-info {
  font-size: 12px;
  color: #666;
}

/* Badges */
.badge-modern {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-info {
  background: rgba(93, 135, 255, 0.15);
  color: #5d87ff;
}

.badge-success {
  background: rgba(19, 222, 185, 0.15);
  color: #00a389;
}

.badge-secondary {
  background: rgba(128, 128, 128, 0.15);
  color: #666;
}

/* Gender Badge */
.gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
}

.gender-male {
  color: #5d87ff;
}

.gender-female {
  color: #ff6b9d;
}

/* Empty State */
.empty-state {
  padding: 60px 20px !important;
  text-align: center;
}

.empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-content i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-content h4 {
  color: #666;
  margin-bottom: 5px;
}

.empty-content p {
  color: #999;
  margin-bottom: 20px;
}

.btn-empty-action {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-empty-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Info Alert */
.info-alert {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(93, 135, 255, 0.1);
  border-radius: 12px;
  padding: 15px 20px;
  border-left: 4px solid #5d87ff;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5d87ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 20px;
  color: white;
}

.info-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

/* Page Footer */
.page-footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 20px;
  }

  .page-subtitle {
    font-size: 12px;
  }

  .btn-back span {
    display: none;
  }

  .btn-back {
    padding: 10px 15px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 10px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
  }

  .stat-icon i {
    font-size: 20px;
  }

  .content-card-header {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: center;
  }

  .btn-action span {
    display: none;
  }

  .btn-action {
    padding: 10px 15px;
  }

  .content-card-body {
    padding: 15px;
  }

  .filter-section {
    padding: 15px;
  }

  .hide-mobile {
    display: none !important;
  }

  .table-modern th,
  .table-modern td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .hide-desktop {
    display: block !important;
  }

  .info-alert {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

.hide-desktop {
  display: none;
}

/* Search Input Styles */
.search-input-wrapper {
  position: relative;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.filter-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.filter-input:focus {
  outline: none;
  border-color: #667eea;
}

/* Table Scroll Hint */
.table-scroll-hint {
  display: none;
  text-align: center;
  color: #888;
  font-size: 12px;
  padding: 10px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  margin-top: 10px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: block;
  }
}

/* Pagination Styles */
.pagination {
  gap: 5px;
  flex-wrap: wrap;
}

.pagination .page-item .page-link {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  color: #667eea;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
}

.pagination .page-item .page-link:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: #ccc;
  background: #f8f9fa;
  border-color: #e0e0e0;
  cursor: not-allowed;
}

@media (max-width: 576px) {
  .pagination .page-item .page-link {
    min-width: 35px;
    height: 35px;
    font-size: 12px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  width: 90%;
  height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: all 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.btn-modal-action {
  border: none;
  background: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-download {
  background: linear-gradient(135deg, #217346, #1e7e34);
  color: white;
}

.btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: white;
}

.btn-close {
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

.modal-body {
  flex: 1;
  position: relative;
  background: #525659;
  /* PDF Viewer bg color */
  overflow: hidden;
}

.preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: relative;
  z-index: 2;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 1;
}

.loading-spinner i {
  font-size: 32px;
  margin-bottom: 10px;
}

/* Excel Preview Styles */
body.excel-preview-body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f0f0;
}
.excel-toolbar {
  background: #217346;
  color: white;
  padding: 8px 15px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.sheet-container {
  background: white;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: auto;
  max-width: 98%;
  height: calc(100vh - 60px);
  /* Optimization for scrolling */
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}
table.excel-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  min-width: 1000px;
}
/* Optimize row rendering with content-visibility */
table.excel-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: 29px; /* Approximate height of a row */
}
table.excel-table th,
table.excel-table td {
  border: 1px solid #d4d4d4;
  padding: 4px 8px;
  white-space: nowrap;
}
table.excel-table th {
  background: #f3f3f3;
  font-weight: 600;
  color: #333;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  /* Fix sticky header flickering */
  will-change: transform;
}
/* Excel Header Style */
.excel-header {
  background: #667eea !important;
  color: white !important;
}
table.excel-table tr:nth-child(even) {
  background: #fafafa;
}

/* Specific column formatting matches real excel */
.col-center {
  text-align: center;
}
.col-left {
  text-align: left;
}

/* Styles from pendaftaran.html */
/* Base Styles - Same Theme as Menu */
.page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
}

/* Page Header */
.page-header {
  padding: 10px 0;
}

.page-title {
  color: white;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-title i {
  margin-right: 10px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

.btn-back {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
  background: white;
  color: #667eea;
  transform: translateX(-5px);
}

/* Alert Modern */
.alert-modern {
  border-radius: 15px;
  border: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-modern.alert-dismissible {
  padding-right: 3rem;
}

/* Specific styles for Django message tags */
.alert-error {
  background-color: #fff5f5;
  color: #c62828;
  border-left: 5px solid #ef5350;
}

.alert-success {
  background-color: #f0fff4;
  color: #2e7d32;
  border-left: 5px solid #66bb6a;
}

.alert-warning {
  background-color: #fff8e1;
  color: #f57f17;
  border-left: 5px solid #ffca28;
}

.alert-modern i {
  font-size: 20px;
}

/* Form Cards */
.form-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease forwards;
}

.form-card-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card-header i {
  font-size: 20px;
}

.club-card .form-card-header {
  background: linear-gradient(135deg, #13deb9, #00bfa5);
}

.atlit-header {
  background: linear-gradient(135deg, #5d87ff, #4169e1);
  justify-content: space-between;
}

.table-header {
  background: linear-gradient(135deg, #ffae1f, #ff9800);
}

.form-card-body {
  padding: 25px;
}

/* Form Controls Modern */
.form-label-modern {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control-modern {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control-modern:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control-modern::placeholder {
  color: #aaa;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

/* Buttons */
.btn-add-atlit {
  background: linear-gradient(135deg, #13deb9, #00bfa5);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(19, 222, 185, 0.3);
}

.btn-add-atlit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(19, 222, 185, 0.4);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-reset,
.btn-submit {
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
}

.btn-reset {
  background: #f0f0f0;
  color: #666;
  width: auto;
}

.btn-reset:hover {
  background: #e0e0e0;
}

.btn-submit {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
  width: auto;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Upload Section */
.upload-section-title {
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-section-title i {
  font-size: 18px;
}

.upload-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px;
  border: 2px dashed #e0e0e0;
  transition: all 0.3s ease;
}

.upload-box:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.file-input {
  padding: 8px 12px !important;
  font-size: 13px !important;
}

.file-input::file-selector-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
}

.file-input::file-selector-button:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* Remove Button */
.btn-remove-atlit {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-remove-atlit:hover {
  background: #ff6b6b;
  transform: rotate(90deg);
}

/* Table Modern */
.table-card .form-card-body {
  padding: 0;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
}

.table-modern th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #1a1a2e;
  font-size: 13px;
  border-bottom: 2px solid #e0e0e0;
}

.table-modern td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #333;
}

.table-modern tbody tr:hover {
  background: #f8f9fa;
}

/* Badges Modern */
.badge-modern {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-info {
  background: rgba(93, 135, 255, 0.15);
  color: #5d87ff;
}

.badge-success {
  background: rgba(19, 222, 185, 0.15);
  color: #00a389;
}

.badge-warning {
  background: rgba(255, 174, 31, 0.15);
  color: #d99100;
}

.badge-danger {
  background: rgba(255, 107, 107, 0.15);
  color: #e55353;
}

/* Page Footer */
.page-footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 20px;
  }

  .page-subtitle {
    font-size: 12px;
  }

  .btn-back span {
    display: none;
  }

  .btn-back {
    padding: 10px 15px;
  }

  .form-card-body {
    padding: 15px;
  }

  .form-control-modern {
    padding: 10px 14px;
  }

  .btn-add-atlit,
  .btn-reset,
  .btn-submit {
    padding: 12px 20px;
    font-size: 14px;
  }

  .form-actions {
    justify-content: center;
  }

  .hide-mobile {
    display: none !important;
  }

  .table-modern th,
  .table-modern td {
    padding: 10px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 18px;
  }

  .form-card {
    border-radius: 15px;
  }

  .btn-add-atlit span,
  .btn-reset span,
  .btn-submit span {
    display: none;
  }

  .btn-add-atlit,
  .btn-reset,
  .btn-submit {
    padding: 12px 15px;
  }
}

/* KOP Styles */
@media (max-width: 768px) {
  .kop-text {
    padding: 0 50px;
  }

  .kop-logo {
    width: 50px;
    max-height: 50px;
  }

  .kop-title {
    font-size: 14px; /* Dikurangi untuk mobile */
  }

  .kop-event {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .kop-wrapper {
    padding: 5px 0;
    margin-bottom: 5px;
  }

  .kop-text {
    padding: 0 20px;
  }

  .kop-logo {
    width: 40px;
    max-height: 40px;
  }

  .kop-title {
    font-size: 12px; /* Lebih kecil lagi untuk layar sempit */
  }

  .kop-event {
    font-size: 10px;
  }
}

/* styles from login1.html */
/* Animated Background */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

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

html,
body {
  font-family: "Poppins", sans-serif;
  overflow-y: auto !important;
}

.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated Background */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 15s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: 30%;
  animation-delay: -10s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  right: 20%;
  animation-delay: -7s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Login Container */
.login-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left Side - Branding */
.login-branding {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-branding::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.branding-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.logo-section {
  margin-bottom: 25px;
}

.brand-logo {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.brand-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.95;
}

.brand-desc {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 30px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.feature-item i {
  font-size: 20px;
}

/* Right Side - Form */
.login-form-section {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-wrapper {
  width: 100%;
  max-width: 350px;
}

.form-header {
  text-align: center;
  margin-bottom: 35px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.avatar-circle i {
  font-size: 36px;
  color: white;
}

.form-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: #888;
}

/* Input Groups */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-size: 20px;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.input-group input::placeholder {
  color: #aaa;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 20px;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #667eea;
}

/* Forgot Link */
.forgot-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  color: #764ba2;
  transform: translateX(5px);
}

/* Buttons */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-login,
.btn-guest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-guest {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-guest:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.form-footer p {
  font-size: 12px;
  color: #999;
}

/* Responsive */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    max-width: 450px;
    min-height: auto;
  }

  .login-branding {
    padding: 40px 30px;
  }

  .brand-logo {
    height: 70px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 18px;
  }

  .brand-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .feature-item {
    font-size: 12px;
  }

  .login-form-section {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 10px;
  }

  .login-container {
    border-radius: 20px;
  }

  .login-branding {
    padding: 30px 20px;
  }

  .brand-logo {
    height: 60px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 16px;
  }

  .brand-desc {
    font-size: 12px;
  }

  .brand-features {
    display: none;
  }

  .login-form-section {
    padding: 30px 20px;
  }

  .avatar-circle {
    width: 60px;
    height: 60px;
  }

  .avatar-circle i {
    font-size: 28px;
  }

  .form-header h3 {
    font-size: 20px;
  }

  .input-group input {
    padding: 12px 45px;
    font-size: 14px;
  }

  .btn-login,
  .btn-guest {
    padding: 12px 20px;
    font-size: 14px;
  }
}
