/* ============================================= */
/* General Sticky Navbar Implementation */
/* ============================================= */
body {
  padding-top: 56px; /* Default navbar height */
}

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030; /* Higher than most content */
  background-color: #003366;
  color: white;
  border-bottom: 2px solid #001f3f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Adjust content wrapper to account for fixed navbar */
.content-wrapper {
  margin-top: 56px;
  padding-top: 20px;
}

/* ============================================= */
/* Existing Platform Registration Styles */
/* ============================================= */
.platform-reg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.platform-reg-card {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 20px; /* Added space between navbar and card */
}

.platform-reg-card .card-header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  border-radius: 10px 10px 0 0 !important;
  padding: 15px 20px;
}

.platform-reg-card .card-body {
  padding: 25px;
}

/* ============================================= */
/* Form Elements */
/* ============================================= */
.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 20px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  grid-column: 1 / -1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.required-field::after {
  content: " *";
  color: #e74c3c;
}

.form-control-sm {
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: border-color 0.3s;
  width: 100%;
}

.form-control-sm:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* ============================================= */
/* Select2 Customization */
/* ============================================= */
.select2-container--default .select2-selection--multiple {
  min-height: 31px;
  border-radius: 4px !important;
  border: 1px solid #ddd !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #3498db;
  border: none;
  border-radius: 3px;
  color: white;
  padding: 0 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: white;
  margin-right: 3px;
}

/* ============================================= */
/* Buttons */
/* ============================================= */
.btn-submit {
  background-color: #2c3e50;
  border: none;
  padding: 8px 20px;
  font-weight: 500;
  color: white;
}

.btn-submit:hover {
  background-color: #1a252f;
  color: white;
}

.btn-cancel {
  background-color: #95a5a6;
  border: none;
  padding: 8px 20px;
  font-weight: 500;
  color: white;
}

.btn-cancel:hover {
  background-color: #7f8c8d;
  color: white;
}

.hint-text {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-top: 5px;
}

.form-buttons {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
}

/* ============================================= */
/* Navbar Styling */
/* ============================================= */
.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
  color: white !important;
  font-weight: 500;
}

.custom-navbar .nav-link:hover {
  color: #ffdd57 !important;
  text-decoration: underline;
}

.custom-navbar .navbar-brand span {
  font-size: 1.2rem;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

/* Active link styling */
.custom-navbar .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 5px 10px;
}

/* ============================================= */
/* Responsive Design */
/* ============================================= */
@media (max-width: 768px) {
  body {
    padding-top: 70px; /* More space for mobile navbar */
  }
  
  .content-wrapper {
    margin-top: 70px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .platform-reg-card .card-body {
    padding: 15px;
  }
  
  .custom-navbar .navbar-collapse {
    background-color: #002244;
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
  }
  
  .custom-navbar .nav-item {
    margin-bottom: 5px;
  }
  
  .navbar-brand img {
    height: 35px; /* Slightly smaller logo on mobile */
  }
}




/* Multi-Step Form Styles */
.form-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.step {
  position: relative;
  padding: 10px 20px;
  background: #e9ecef;
  color: #495057;
  border-radius: 30px;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.step.active {
  background: #3498db;
  color: white;
}

.step.completed {
  background: #28a745;
  color: white;
}

.step::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #e9ecef;
  right: -20px;
  top: 50%;
}

.step:last-child::after {
  display: none;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Adjust form grid for steps */
.form-step .form-grid {
  animation: slideIn 0.5s;
}

@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}



/* ============================================= */
/* Print Styles */
/* ============================================= */
@media print {
  .custom-navbar {
    display: none;
  }
  
  body {
    padding-top: 0;
  }
  
  .content-wrapper {
    margin-top: 0;
  }
}