/* Global styles for the Domainhunter App */
:root {
  --primary-dark: #0f1923;
  --primary-blue: #1a3a5f;
  --accent-red: #e63946;
  --text-light: #f1faee;
  --text-muted: #a8b2d1;
  --border-color: #2a3f5f;
  --card-bg: #162231;
  --hover-color: #2a4a6d;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--primary-blue);
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  margin-right: 15px;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.nav-tabs {
  display: flex;
  margin-top: 1rem;
}

.nav-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-tab.active {
  color: var(--text-light);
  border-bottom: 2px solid var(--accent-red);
}

.nav-tab:hover:not(.active) {
  color: var(--text-light);
  border-bottom: 2px solid var(--hover-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

main {
  padding: 2rem 0;
}

.search-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.search-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.search-title i {
  margin-right: 10px;
  color: var(--accent-red);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 15px;
}

@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 90%;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  box-shadow: 0 0 5px #1a3a5f, 0 0 10px #1a3a5f;

  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 10px #1a3a5f, 0 0 20px #1a3a5f;
}

.btn {
  cursor: pointer;
  padding: 0.8rem 1.5rem;
  
  border-radius: 5px;
  border: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.7), 0 0 20px rgba(230, 57, 70, 0.5);


}

.btn-primary {
  background-color: var(--accent-red);
  color: white;
  box-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-red);
  animation: neon-pulse 2s infinite;
}

.btn-primary:hover {
  background-color: #d1303c;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.btn-secondary:hover {
  background-color: rgba(230, 57, 70, 0.1);
}

.search-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.results-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.results-title {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.results-title i {
  margin-right: 10px;
  color: var(--accent-red);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.results-actions {
  display: flex;
  gap: 10px;
}

.domains-table {
  width: 100%;
  border-collapse: collapse;
}

.domains-table th,
.domains-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.domains-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.domains-table tbody tr:hover {
  background-color: var(--hover-color);
}

.domain-name {
  font-weight: 500;
}

.domain-tld {
  color: var(--accent-red);
  font-weight: 600;
}

.security-tools {
  display: flex;
  gap: 10px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transition: all 0.2s;
}

.tool-link:hover {
  background-color: var(--accent-red);
  transform: translateY(-2px);
}

.results-limit-message {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(230, 57, 70, 0.1);
  border-left: 4px solid var(--accent-red);
  border-radius: 4px;
}

.results-limit-message p {
  margin: 0;
  color: var(--text-light);
}

.results-limit-message a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
}

.results-limit-message a:hover {
  text-decoration: underline;
}

.results-limit-message i {
  margin-right: 8px;
  color: var(--accent-red);
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-new {
  background-color: var(--accent-red);
}

.status-old {
  background-color: #ffd166;
}

.last-updated {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--border-color);
}

.about-container {
  background-color: var(--card-bg);
  border-radius: 5px;
  text-align: justify;
  letter-spacing: -1px;
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.about-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.about-title i {
  margin-right: 10px;
  color: var(--accent-red);
}

.about-description {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-red);
  margin: 0.5rem 0;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p {
  margin-top: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsiveness for tables on mobile devices */
@media (max-width: 768px) {
  .domains-table {
    display: block;
    overflow-x: auto;
  }

  .search-actions {
    
  }

  .btn {
    width: 100%;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.7), 0 0 20px rgba(230, 57, 70, 0.5);
  }

  .form-control {
    width: 90%
  }
}