/* Corporate Portal Theme Variables */
:root {
  --corporate-primary: #0D9488; /* Teal-600 */
  --corporate-primary-hover: #0F766E; /* Teal-700 */
  --corporate-bg: #f8fafc;
  --corporate-sidebar-bg: #042f2e; /* Dark Teal */
}

/* Sidebar Branding for Corporate */
.corporate-sidebar .sidebar-logo-wrapper {
  background: var(--corporate-primary) !important;
}

.corporate-sidebar .nav-link:hover, 
.corporate-sidebar .nav-link.active {
  color: var(--corporate-primary) !important;
  background: rgba(13, 148, 136, 0.1) !important;
}

/* Corporate Stat Cards */
.corp-stat-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.corp-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Application Status Stepper */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.stepper-wrapper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.stepper-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.stepper-icon {
  width: 32px;
  height: 32px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 600;
  color: #64748b;
}

.stepper-item.completed .stepper-icon {
  background: var(--corporate-primary);
  border-color: var(--corporate-primary);
  color: white;
}

.stepper-item.active .stepper-icon {
  border-color: var(--corporate-primary);
  color: var(--corporate-primary);
}

/* QR Scanner Mockup */
.qr-scan-area {
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.scan-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border: 2px solid var(--corporate-primary);
  box-shadow: 0 0 0 1000px rgba(0,0,0,0.5);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--corporate-primary);
  box-shadow: 0 0 15px var(--corporate-primary);
  animation: scanAnim 2s infinite linear;
}

@keyframes scanAnim {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Custom Toggle Switch */
.form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
  background-color: #cbd5e1;
  border-color: #cbd5e1;
  cursor: pointer;
}

.form-switch .form-check-input:checked {
  background-color: var(--corporate-primary);
  border-color: var(--corporate-primary);
}

.card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 1rem;
}

/* Mobile Toggle Corporate Style */
.corporate-portal .mobile-toggle {
  background: rgba(13, 148, 136, 0.1);
  color: var(--corporate-primary);
}

.corporate-portal .mobile-toggle:hover {
  background: var(--corporate-primary);
  color: white;
}

/* File Upload Area */
.upload-zone {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  background: #f8fafc;
}

.upload-zone:hover {
  border-color: var(--corporate-primary);
  background: rgba(13, 148, 136, 0.05);
}

.upload-icon {
  font-size: 2rem;
  color: var(--corporate-primary);
  margin-bottom: 8px;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #f1f5f9;
}

@media (max-width: 768px) {
  .corp-stat-card {
    padding: 16px;
  }
}


/* Custom Status Badges */
.badge-status-custom {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.badge-status-custom.active {
  background-color: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.badge-status-custom.in-review {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.badge-status-custom.inactive {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.badge-status-custom::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-status-custom.active::before { background-color: #15803d; }
.badge-status-custom.in-review::before { background-color: #b45309; }
.badge-status-custom.inactive::before { background-color: #475569; }

