* {
  box-sizing: border-box;
}

body {
  background: #ffffff;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #09090b;
  line-height: 1.5;
}

.main-container {
  background: white;
  border: 1px solid #e4e4e7;
  max-width: 1200px;
  overflow: hidden;
}

.header {
  background: #09090b;
  color: white;
  padding: 2rem;
  border-bottom: 1px solid #e4e4e7;
}

.header h1 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0;
}

.header p {
  margin: 0.5rem 0 0 0;
  color: #a1a1aa;
  font-size: 0.875rem;
}

.nav-tabs {
  background: #f8f9fa;
  border-bottom: 1px solid #e4e4e7;
  padding: 0 2rem;
  margin: 0;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 0;
  color: #71717a;
  font-weight: 500;
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
  background: transparent;
}

.nav-tabs .nav-link:hover {
  color: #09090b;
  background: #f4f4f5;
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: #09090b;
  background: white;
  border-color: #e4e4e7 #e4e4e7 white;
  border-bottom: 2px solid #09090b;
}

.card {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: white;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-body {
  padding: 1.5rem;
}

.btn-primary {
  background: #09090b;
  border: 1px solid #09090b;
  color: white;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #18181b;
  border-color: #18181b;
  color: white;
}

.btn-primary:focus {
  outline: 2px solid #09090b;
  outline-offset: 2px;
}

.btn-primary:disabled {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #a1a1aa;
  cursor: not-allowed;
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid #e4e4e7;
  color: #09090b;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-primary:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #09090b;
}

.form-select, .form-control {
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus, .form-control:focus {
  outline: none;
  border-color: #09090b;
  box-shadow: 0 0 0 2px rgba(9, 9, 11, 0.1);
}

.form-select:disabled, .form-control:disabled {
  background: #f4f4f5;
  color: #a1a1aa;
  cursor: not-allowed;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #09090b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label i {
  color: #71717a;
  font-size: 0.75rem;
}

.section-title {
  color: #09090b;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: #71717a;
  font-size: 1rem;
}

.loading {
  display: none;
  text-align: center;
  padding: 1.5rem;
}

.spinner-border {
  color: #09090b;
  width: 1.5rem;
  height: 1.5rem;
  border-width: 2px;
}

.alert {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.list-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-group-item {
  border: 1px solid #e4e4e7;
  padding: 1rem;
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.list-group-item:hover {
  background: #f9fafb;
  border-color: #d4d4d8;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.bg-success {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.bg-warning {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.bg-secondary {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

.bg-primary {
  background: #09090b !important;
  color: white !important;
}

.text-muted {
  color: #71717a !important;
}

.fw-bold {
  font-weight: 600;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #71717a;
  cursor: pointer;
}

.container-fluid {
  padding: 1rem;
}

@media (min-width: 768px) {
  .container-fluid {
      padding: 2rem;
  }
}

/* Mobile-Optimized Styles */
.mobile-nav {
  background: #f8f9fa;
  border-bottom: 1px solid #e4e4e7;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-buttons {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #71717a;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 60px;
}

.nav-btn i {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.nav-btn:hover {
  color: #09090b;
  background: #f4f4f5;
}

.nav-btn.active {
  color: #09090b;
  background: white;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.main-content {
  padding: 0.75rem;
}

/* Mobile-optimized containers */
@media (max-width: 767px) {
  .container-fluid {
    padding: 0;
  }
  
  .main-container {
    border: none;
    max-width: none;
  }
  
  .card {
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: none;
    border-right: none;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  
  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  
  .form-select, .form-control {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .row.g-3 {
    --bs-gutter-x: 0.25rem;
    --bs-gutter-y: 0.5rem;
  }
  
  /* Compact grid for mobile */
  .col-md-6 {
    margin-bottom: 0.5rem;
  }
  
  .col-md-3 {
    margin-bottom: 0.5rem;
  }
  
  /* Make lists more compact */
  .list-group-item {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Smaller badges */
  .badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }
  
  /* Compact alert */
  .alert {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
  }
}

/* Extra compact for very small screens */
@media (max-width: 480px) {
  .main-content {
    padding: 0.5rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .section-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .nav-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    min-width: 50px;
  }
  
  .nav-btn i {
    font-size: 0.9rem;
  }
  
  .form-label {
    font-size: 0.75rem;
  }
  
  .form-select, .form-control {
    padding: 0.4rem;
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .row.g-3 {
    --bs-gutter-x: 0.25rem;
    --bs-gutter-y: 0.5rem;
  }
}

/* Accordion optimizations */
.accordion-button {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.accordion-body {
  padding: 0.75rem 1rem;
}

.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #e4e4e7;
}

/* Small form controls */
.form-select-sm, .form-control-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* Compact spacing utilities */
.small {
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .accordion-button {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .accordion-body {
    padding: 0.6rem 0.75rem;
  }
  
  .form-select-sm, .form-control-sm {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .accordion-button {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .accordion-body {
    padding: 0.5rem 0.6rem;
  }
}

