body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
  /* margin: 0; */
  /* padding: 0; */
}

.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

input {
  padding: 12px;
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  border: none;
  /* margin-bottom: 10px; */
  box-sizing: border-box;
}

button {
  padding: 12px 18px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  /* margin-bottom: 20px; */
  transition: background 0.2s;
}

button:hover {
  background: #2563eb;
}

.hidden {
  display: none !important;
}

/* ERROR MESSAGE */
#errorMessage {
  color: #d32f2f;
  padding: 10px;
  /* margin: 10px 0; */
  background: #ffebee;
  border-radius: 4px;
  /* border-left: 4px solid #d32f2f; */
}

/* LOADER */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  gap: 10px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #334155;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 14px;
  color: #cbd5e1;
  animation: fade 1.2s ease-in-out infinite;
}

@keyframes fade {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* RESULTS CONTAINER */
#resultsContainer {
  margin-top: 30px;
}

/* CARD */
.card {
  background: #1e293b;
  padding: 16px;
  border-radius: 12px;
  margin: 12px 0;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.card h3 {
  margin: 0 0 12px 0;
  color: #93c5fd;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.6;
}

/* TAGS (For Products/Services) */
#products,
#services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #e2e8f0;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s;
}

.tag:hover {
  background: #475569;
  border-color: #64748b;
}

/* SOCIAL LINKS */
.socialBox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #111a2e;
  border-radius: 10px;
  text-decoration: none;
  color: #93c5fd;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.social-link:hover {
  transform: translateY(-2px);
  background: #1e293b;
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

/* SEO ANALYSIS */
#seoAnalysis div {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

#seoAnalysis div:last-child {
  border-bottom: none;
}

#seoAnalysis b {
  color: #93c5fd;
  margin-right: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    margin: 20px auto;
    padding: 15px;
  }

  input {
    padding: 10px;
    font-size: 16px;
  }

  button {
    padding: 10px 16px;
    font-size: 14px;
  }

  .card {
    padding: 12px;
  }

  .card h3 {
    font-size: 14px;
  }

  #products,
  #services,
  .socialBox {
    flex-direction: column;
    gap: 6px;
  }

  .tag,
  .social-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 10px auto;
    padding: 10px;
  }

  h1 {
    font-size: 20px;
    margin: 10px 0;
  }

  .card {
    margin: 8px 0;
  }
}
a
{
  color: inherit;
  text-decoration: none;
}
#companyDomain {
  color: #4dabf7;
  text-decoration: none;
  font-weight: 600;
}

#companyDomain:hover {
  text-decoration: underline;
}
.back-btn {
  display: inline-block;
  padding: 10px 15px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  /* margin-bottom: 20px; */
}

.back-btn:hover {
  opacity: 0.9;
  color: #2563eb;
  background: white;
}
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-box {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.auth-box input {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
}

.auth-box button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
}

.hidden {
  display: none;
}

.auth-msg {
  font-size: 13px;
  color: red;
  margin-top: 5px;
}
.search-box {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width:1200px) {
    .search-box {
        flex-wrap: wrap;
    }
}

.error-message {
  /* width: 100%; */
  max-width: fit-content;
  margin: 12px auto 25px;
  padding: 12px;
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #c62828;
  border-radius: 6px;
  text-align: center;
  display: none;
  font-weight: 600;
}

.btn-danger {
  display: inline-block;
  background: #dc3545;
  color: white;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  text-decoration: none;
}

.btn-danger:hover {
  text-decoration: none;
  opacity: 0.9;
  background-color: white;
  color: #dc3545;
}
