:root {
  --primary-color: #4f46e5;
  --primary-light: #818cf8;
  --surface: #ffffff;
  --surface-variant: #f8fafc;
  --on-surface: #1e293b;
  --on-surface-variant: #64748b;
  --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-large: 0 20px 25px rgba(0,0,0,0.1);
  --border-radius: 1rem;
  --border-radius-lg: 1.5rem;
}

body {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--on-surface);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 1rem;
  overflow: hidden;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-wrapper {
  max-width: 580px;
  margin: 2rem auto;
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-large);
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-wrapper h3 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.nav-tabs {
  border: none;
  margin-bottom: 2rem;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: var(--border-radius);
  margin-right: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: var(--on-surface-variant);
  background: var(--surface-variant);
  transition: all 0.3s ease;
  font-weight: 500;
}

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

.nav-tabs .nav-link:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-1px);
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.tab-content::-webkit-scrollbar {
  width: 6px;
}

.tab-content::-webkit-scrollbar-track {
  background: var(--surface-variant);
  border-radius: var(--border-radius);
}

.tab-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--border-radius);
}

.tab-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

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

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
  background: var(--surface);
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.875rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

#companySuggest {
  z-index: 10;
  top: 100%;
  left: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-large);
  border: none;
  overflow: hidden;
}

#companySuggest .list-group-item {
  border: none;
  padding: 1rem;
  transition: all 0.2s ease;
}

#companySuggest .list-group-item:hover {
  background: var(--surface-variant);
  cursor: pointer;
}

#verify {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#verify .card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-large);
  padding: 2rem;
}

.spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

footer {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  margin-top: auto;
  border-top: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

footer .alert {
  margin-bottom: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.text-muted {
  color: var(--on-surface-variant) !important;
}

/* Result containers */
#companyResult, #tinResult {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface-variant);
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
}

/* Loading states */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .card-wrapper {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .main-content {
    padding: 0.5rem;
  }
}
