/* Page Header */
       /* ===== VALIDATION ERROR ===== */
.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fff5f5;
}

.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* teks error */
.text-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
}
.btn-cancel-responsive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 768px) {
    .btn-cancel-responsive {
        width: 100%;
    }
}


/* khusus select */
.form-select.is-invalid {
    background-image: none;
}

      .page-header {
        margin-top: 60px;
        padding: 50px 40px;
        background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
        position: relative;
        overflow: hidden;
      }

      .page-header::before {
        content: "";
        position: absolute;
        width: 400px;
        height: 400px;
        background: radial-gradient(
          circle,
          rgba(45, 91, 255, 0.1) 0%,
          transparent 70%
        );
        top: -150px;
        right: -150px;
        border-radius: 50%;
      }

      .page-header-content {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
      }

      .breadcrumb {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: #ff6b35;
        margin-bottom: 15px;
      }

      .breadcrumb a {
        color: #64748b;
        text-decoration: none;
        transition: color 0.3s;
      }

      .breadcrumb a:hover {
        color: #1e3a8a;
      }

      .page-title {
        font-size: 42px;
        font-weight: 800;
        color: #1e3a8a;
        margin-bottom: 10px;
      }

      .page-subtitle {
        font-size: 16px;
        color: #64748b;
        line-height: 1.6;
      }

      /* Main Content */
      .main-content {
        max-width: 1200px;
        margin: -40px auto 80px;
        padding: 0 40px;
        position: relative;
        z-index: 10;
      }

      /* Batch Info Card */
      .batch-info-card {
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
        position: relative;
        overflow: hidden;
      }

      .batch-info-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
      }

      .batch-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 20px;
      }

      .batch-title-section h2 {
        font-size: 28px;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 5px;
      }

      .batch-badge {
        display: inline-block;
        padding: 6px 16px;
        background: rgba(255, 107, 53, 0.1);
        color: #ff6b35;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
      }

      .batch-status {
        text-align: right;
      }

      .status-badge {
        display: inline-block;
        padding: 8px 20px;
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
      }

      .batch-info-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
      }

      .info-item {
        display: flex;
        align-items: center;
        gap: 15px;
      }

      .info-text {
        flex: 1;
      }

      .info-label {
        font-size: 13px;
        color: #64748b;
        margin-bottom: 3px;
      }

      .info-value {
        font-size: 16px;
        font-weight: 600;
        color: #1e3a8a;
      }

      .info-value.highlight {
        color: #ff6b35;
        font-size: 18px;
      }

      /* Registration Card */
      .registration-card {
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
      }

      .registration-header {
        margin-bottom: 30px;
      }

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

      .registration-header p {
        font-size: 15px;
        color: #64748b;
      }

      /* Category Tabs */
      .category-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 35px;
        border-bottom: 2px solid #f1f5f9;
        overflow-x: auto;
      }

      .tab-button {
        padding: 14px 28px;
        background: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        color: #64748b;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        font-family: "Poppins", sans-serif;
        white-space: nowrap;
      }

      .tab-button:hover {
        color: #2d5bff;
      }

      .tab-button.active {
        color: #ff6b35;
        border-bottom-color: #ff6b35;
      }

      /* Form Content */
      .form-content {
        display: none;
      }

      .form-content.active {
        display: block;
        animation: fadeIn 0.4s ease;
      }

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

      .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
      }

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

      .form-group.full-width {
        grid-column: span 2;
      }

      .form-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #1e3a8a;
        margin-bottom: 8px;
      }

      .required {
        color: #ef4444;
        margin-left: 3px;
      }

      .form-input,
      .form-select {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 15px;
        font-family: "Poppins", sans-serif;
        color: #1e3a8a;
        transition: all 0.3s;
      }

      .form-input:focus,
      .form-select:focus {
        outline: none;
        border-color: #2d5bff;
        box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.1);
      }

      .form-input::placeholder {
        color: #94a3b8;
      }

      .file-upload {
        position: relative;
      }

      .file-input {
        display: none;
      }

      .file-label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 40px 20px;
        border: 2px dashed #cbd5e1;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s;
        background: #f8fafc;
      }

      .file-label:hover {
        border-color: #2d5bff;
        background: rgba(45, 91, 255, 0.05);
      }

      .file-label.has-file {
        border-color: #22c55e;
        background: rgba(34, 197, 94, 0.05);
      }

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

      .file-text strong {
        display: block;
        color: #1e3a8a;
        font-size: 14px;
        margin-bottom: 3px;
      }

      .file-text span {
        font-size: 12px;
        color: #64748b;
      }

      .file-name {
        margin-top: 8px;
        font-size: 13px;
        color: #22c55e;
        font-weight: 500;
      }

      .form-hint {
        font-size: 12px;
        color: #64748b;
        margin-top: 5px;
      }

      /* Form Actions */
      .form-actions {
        display: flex;
        gap: 15px;
        margin-top: 35px;
        padding-top: 30px;
        border-top: 2px solid #f1f5f9;
      }

      .btn-submit {
        flex: 1;
        padding: 16px 32px;
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        font-family: "Poppins", sans-serif;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
      }

      .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
      }

      .btn-cancel {
        padding: 16px 32px;
        background: white;
        color: #64748b;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        font-family: "Poppins", sans-serif;
      }

      .btn-cancel:hover {
        border-color: #cbd5e1;
        background: #f8fafc;
      }

         /* Modal */
      .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        animation: fadeIn 0.3s ease;
      }

      .modal-overlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }

      .modal {
        background: white;
        border-radius: 24px;
        max-width: 500px;
        width: 100%;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: slideUp 0.4s ease;
        position: relative;
        z-index: 9999;
      }

      .modal-header {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        padding: 40px;
        text-align: center;
        position: relative;
        overflow: hidden;
      }

      .modal-header::before {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        top: -80px;
        right: -80px;
      }

      .modal-icon {
        width: 80px;
        height: 80px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        margin: 0 auto 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 1;
      }

      .modal-title {
        font-size: 28px;
        font-weight: 800;
        color: white;
        margin-bottom: 8px;
        position: relative;
        z-index: 1;
      }

      .modal-subtitle {
        font-size: 15px;
        color: rgba(255, 255, 255, 0.9);
        position: relative;
        z-index: 1;
      }

      .modal-body {
        padding: 35px;
      }

      .modal-info {
        background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
        border-radius: 16px;
        padding: 25px;
        margin-bottom: 25px;
      }

      .modal-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(45, 91, 255, 0.1);
      }

      .modal-info-item:last-child {
        border-bottom: none;
      }

      .modal-info-label {
        font-size: 14px;
        color: #64748b;
        font-weight: 500;
      }

      .modal-info-value {
        font-size: 14px;
        color: #1e3a8a;
        font-weight: 600;
        text-align: right;
      }

      .modal-message {
        background: rgba(255, 107, 53, 0.1);
        border-left: 4px solid #ff6b35;
        padding: 15px 20px;
        border-radius: 10px;
        margin-bottom: 25px;
      }

      .modal-message p {
        font-size: 14px;
        color: #1e3a8a;
        line-height: 1.6;
        margin: 0;
      }

      .modal-message strong {
        color: #ff6b35;
      }

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

      .btn-modal {
        flex: 1;
        padding: 14px 24px;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        font-family: "Poppins", sans-serif;
      }

      .btn-modal-primary {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
      }

      .btn-modal-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
      }

      .btn-modal-secondary {
        background: white;
        color: #64748b;
        border: 2px solid #e2e8f0;
      }

      .btn-modal-secondary:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
      }

      /* Modal overlay khusus mahasiswa */
.modal-already-registered-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Kotak modal khusus mahasiswa */
  .modal-already-registered {
      background: #fff5f5; /* warna latar merah muda lembut */
      border: 2px solid #f87171; /* border merah */
      max-width: 400px;
      width: 90%;
      padding: 24px;
      border-radius: 16px;
      text-align: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }

  .modal-already-registered h3 {
      color: #b91c1c; /* merah gelap */
      margin-bottom: 12px;
  }

  .modal-already-registered p {
      color: #7f1d1d;
      font-size: 14px;
      line-height: 1.5;
  }

  .modal-already-registered .modal-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-top: 20px;
  }
  .modal-already-registered .btn-secondary {
      background: #e5e7eb; 
      color: #374151;       
      padding: 10px 18px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
  }

  .modal-already-registered .btn-secondary:hover {
      background: #d1d5db; 
  }

  .modal-already-registered .btn-primary {
      background: #ef4444; 
      color: white;
      padding: 10px 18px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s;
  }

  .modal-already-registered .btn-primary:hover {
      background: #dc2626; 
  }


      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

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

       /* Responsive */
      @media (max-width: 1024px) {
        .form-row {
          grid-template-columns: 1fr;
        }

        .form-group.full-width {
          grid-column: span 1;
        }
      }

      @media (max-width: 768px) {
        .page-header {
          padding: 40px 20px;
        }

        .page-title {
          font-size: 32px;
        }

        .main-content {
          padding: 0 20px;
        }

        .batch-info-card,
        .registration-card {
          padding: 25px;
        }

        .batch-header {
          flex-direction: column;
        }

        .batch-status {
          text-align: left;
        }

        .batch-info-grid {
          grid-template-columns: 1fr;
        }

        .category-tabs {
          gap: 5px;
        }

        .tab-button {
          padding: 12px 20px;
          font-size: 14px;
        }

        .form-actions {
          flex-direction: column-reverse;
        }
      }