body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.main-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
}

/* Header Styles */
.main-container h1 {
  color: #2c3e50;
  font-weight: 700;
  margin: 0;
}

/* Tab Styles */
.nav-tabs {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px 8px 0 0;
  padding: 0 1rem;
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 12px 20px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-tabs .nav-link:hover {
  border-color: #007bff;
  color: #007bff;
  background-color: transparent;
}

.nav-tabs .nav-link.active {
  border-color: #007bff;
  color: #007bff;
  background-color: transparent;
  font-weight: 600;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #007bff;
}

.tab-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 8px 8px;
  padding: 2rem;
  min-height: 600px;
  position: relative;
}

.tab-pane {
  animation: fadeIn 0.3s ease-in-out;
  display: block;
}

.tab-pane.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.tab-pane.fade.show {
  opacity: 1;
}

.tab-pane.fade.show.active {
  display: block;
}

/* Ensure proper tab content display */
.tab-content>.tab-pane {
  display: none;
}

.tab-content>.active {
  display: block;
}

/* Fix tab content positioning */
.tab-content {
  position: relative;
  overflow: hidden;
}

.tab-pane {
  position: relative;
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0 !important;
  border: none;
  padding: 1rem 1.5rem;
}

.card-header h5 {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 1.5rem;
}

/* Button Styles */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  padding: 0.5rem 1rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-group .btn {
  margin-right: 0.5rem;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

/* Summary Styles */
.summary-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.summary-label {
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

/* Git and Server Info Styles */
.git-details,
.server-details {
  font-size: 0.9rem;
}

.git-item,
.server-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.git-item:last-child,
.server-item:last-child {
  border-bottom: none;
}

.git-label,
.server-label {
  font-weight: 600;
  color: #495057;
}

.git-value,
.server-value {
  color: #6c757d;
  font-family: 'Courier New', monospace;
}

/* Token Input Styles */
.token-input input {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.token-input input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Loading Styles */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modal Styles */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Test Output Styles */
.test-output {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  border-left: 4px solid #007bff;
}

.test-output pre {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.test-output h6 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Table Styles */
.table {
  font-size: 0.875rem;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
  background: #f8f9fa;
}

.table td {
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem 0;
  }

  .tab-content {
    padding: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .btn-group .btn:last-child {
    margin-bottom: 0;
  }

  .nav-tabs .nav-link {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .main-container h1 {
    font-size: 1.5rem;
  }

  .card-header h5 {
    font-size: 1rem;
  }

  .summary-number {
    font-size: 1.5rem;
  }
}


.domain-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.domain-item:hover {
  transform: translateY(-2px);
}

.domain-item.needs-config {
  border-left: 4px solid #dc3545;
}

.domain-item.has-config {
  border-left: 4px solid #28a745;
}

.domain-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.domain-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.8em;
  padding: 4px;
  border-radius: 4px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.domain-link:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
  color: #5a67d8;
}

.domain-status {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}