/* Modern color scheme for NetCat platform */

/* Override Bootstrap primary color */
.bg-primary {
  background-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

/* Navbar gradient */
.navbar.bg-primary {
  background-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Card headers */
.card-header.bg-primary {
  background-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  border-bottom: none;
}

.card-header.bg-success {
  background-color: #10b981 !important;
  background: linear-gradient(135deg, #10b981 0%, #0da271 100%) !important;
  color: white !important;
  border-bottom: none;
}

.card-header.bg-warning {
  background-color: #f59e0b !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #1e293b !important;
  border-bottom: none;
}

.card-header.bg-secondary {
  background-color: #64748b !important;
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: white !important;
  border-bottom: none;
}

/* Buttons */
.btn-primary {
  background-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  border-radius: 0.5rem;
  font-weight: 500;
}

.btn-success {
  background-color: #10b981 !important;
  background: linear-gradient(135deg, #10b981 0%, #0da271 100%) !important;
  border: none !important;
  border-radius: 0.5rem;
  font-weight: 500;
}

.btn-outline-primary {
  color: #2563eb !important;
  border-color: #2563eb !important;
  border-radius: 0.5rem;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  border-color: #2563eb !important;
}

.btn-outline-success {
  color: #10b981 !important;
  border-color: #10b981 !important;
  border-radius: 0.5rem;
}

.btn-outline-success:hover {
  background: linear-gradient(135deg, #10b981 0%, #0da271 100%) !important;
  color: white !important;
  border-color: #10b981 !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Footer */
.bg-dark {
  background-color: #1e293b !important;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #cbd5e1 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Code blocks */
pre code {
  background-color: #f8fafc !important;
  border-left: 4px solid #2563eb !important;
  border-radius: 0.5rem;
  padding: 1rem !important;
}

/* Debug areas */
#debug-logs,
#debug-result {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Alerts */
.alert {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.alert-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%) !important;
  color: #2563eb !important;
  border-left: 4px solid #2563eb !important;
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
  color: #10b981 !important;
  border-left: 4px solid #10b981 !important;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%) !important;
  color: #f59e0b !important;
  border-left: 4px solid #f59e0b !important;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.2) 100%) !important;
  color: #ef4444 !important;
  border-left: 4px solid #ef4444 !important;
}

.alert-info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.2) 100%) !important;
  color: #06b6d4 !important;
  border-left: 4px solid #06b6d4 !important;
}

/* Tab navigation styles for script/mapping tabs */
.card-header .nav-tabs {
  border-bottom: none;
  margin-bottom: -1px;
}

.card-header .nav-tabs .nav-link {
  color: rgba(255, 255, 255, 0.8);
  background-color: transparent;
  border: none;
  border-radius: 0.5rem 0.5rem 0 0;
  margin-right: 0.25rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.card-header .nav-tabs .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.card-header .nav-tabs .nav-link.active {
  background-color: white !important;
  color: #334155 !important;
  border: none;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.card-header.bg-success .nav-tabs .nav-link.active {
  color: #10b981 !important;
}

.card-header.bg-primary .nav-tabs .nav-link.active {
  color: #2563eb !important;
}

.card-header.bg-warning .nav-tabs .nav-link.active {
  color: #f59e0b !important;
}

.card-header.bg-secondary .nav-tabs .nav-link.active {
  color: #64748b !important;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

.badge {
  font-weight: 500;
  letter-spacing: 0.025em;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(37, 99, 235, 0.05);
  color: #2563eb;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.card[style*="border: 2px solid #2563eb"] {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.card[style*="border: 2px solid #2563eb"]:hover {
  transform: scale(1.05);
}

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

 .display-5 {
  animation: fadeInUp 0.6s ease-out;
}

/* 登录链接增强效果 */
a[href="/login"] {
  transition: all 0.2s ease;
}

a[href="/login"]:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

a[href="/login"] .bi-box-arrow-in-right {
  transition: transform 0.2s ease;
}

a[href="/login"]:hover .bi-box-arrow-in-right {
  transform: translateX(3px);
}

/* 按钮平滑过渡 */
.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 页面元素淡入效果 */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 响应式优化 */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .display-3 {
    font-size: calc(1.5rem + 3vw);
  }
  
  .display-4 {
    font-size: calc(1.3rem + 2vw);
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
}