:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-bg: #1e293b;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.main-content {
  background: transparent !important;
  padding: 2rem;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.nav-tabs {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.nav-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  margin: 0 0.25rem;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.nav-tabs .nav-link.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.stats-container {
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-xl),
    0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.stat-card .card-body {
  padding: 1.5rem;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.icon-wrapper i {
  font-size: 1.25rem;
  color: white;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}

.domain-count .card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.domain-count .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.domain-count .card:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-xl),
    0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.search-box {
  margin-bottom: 2rem;
}

.search-box .form-control {
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  max-width: 500px;
}

.search-box .form-control:focus {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px rgb(99 102 241 / 0.1),
    var(--shadow-md);
  background: white;
}

.domain-container .card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.domain-container .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.domain-container .card:hover::before {
  transform: scaleX(1);
}

.domain-container .card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-xl),
    0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.domain-container .card-body {
  padding: 1.5rem;
  text-align: center;
}

.domain-container .card-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  word-break: break-word;
}

.non-clickable-card {
  cursor: default !important;
}

.non-clickable-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-lg) !important;
}

.non-clickable-card::before {
  background: var(--gradient-secondary) !important;
  transform: scaleX(1) !important;
}

.registrar-section {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.registrar-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.registrar-section .form-control {
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.registrar-section .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
  background: white;
}

.registrar-section .table {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.registrar-section .table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.registrar-section .table th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.registrar-section .table td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.registrar-section .table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
  border-radius: 1rem 1rem 0 0;
}

.modal-title {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-body {
  padding: 2rem;
}

.modal-body .table {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.modal-body .table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-body .table th {
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.modal-body .table td {
  border: none;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.btn-secondary {
  background: var(--gradient-secondary);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.slide-up {
  animation: slideUp 0.4s ease-out forwards;
}

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

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .stat-card .card-body {
    padding: 1rem;
  }

  .icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .icon-wrapper i {
    font-size: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .domain-container .card-body {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }
}

/* Loading States */
.custom-spinner {
  width: 1rem;
  height: 1rem;
  border-width: 0.125em;
}

/* Chart Container */
.chart-container {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

/* Tab Content */
.tab-content {
  background: transparent;
}

.tab-pane {
  background: transparent;
}

/* Status Indicators */
.status-online {
  color: var(--success-color);
  font-weight: 600;
}

.status-offline {
  color: var(--danger-color);
  font-weight: 600;
}

/* Text Utilities */
.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}
