/**
 * Domínios para Advogados - Styles (Clean & Minimal)
 * Estilos específicos para a ferramenta de verificação de domínios
 */

.website-builder-container {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 2rem 0;
}

/* Direct Domain Check Card - Priority */
.domain-direct-check-card {
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.domain-direct-wrapper {
  position: relative;
  min-height: 200px;
}

.domain-direct-input {
  border-radius: 0.5rem 0 0 0.5rem !important;
  border-right: none;
  font-size: 1rem;
  padding: 0.75rem 1rem !important;
  border: 1px solid #d1d5db;
  text-transform: lowercase;
  font-family: 'Courier New', monospace;
}

.domain-direct-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  z-index: 1;
}

.domain-direct-btn {
  border-radius: 0 0.5rem 0.5rem 0 !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 500;
  min-width: 140px;
  background: #2563eb;
  border: none;
}

.domain-direct-btn:hover:not(:disabled) {
  background: #1e40af;
}

.domain-direct-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.direct-check-hints {
  text-align: left;
  padding: 1rem 0;
  line-height: 1.8;
}

.direct-check-hints .text-warning {
  color: #6b7280 !important;
  font-weight: 400;
}

/* Domain Search Card */
.domain-search-card {
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.domain-search-wrapper {
  position: relative;
}

.domain-search-input {
  border-radius: 0.5rem 0 0 0.5rem !important;
  border-right: none;
  font-size: 1rem;
  padding: 0.75rem 1rem !important;
  border: 1px solid #d1d5db;
  text-transform: lowercase;
}

.domain-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  z-index: 1;
}

.domain-extension-select {
  border-radius: 0 !important;
  border-left: none;
  border-right: none;
  font-weight: 400;
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.domain-search-btn {
  border-radius: 0 0.5rem 0.5rem 0 !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 500;
  min-width: 140px;
}

.domain-search-btn:hover {
  background: #1e40af;
}

.search-hints {
  text-align: center;
  padding: 0.5rem 0;
}

.quick-actions {
  margin-top: 1rem;
}

/* Statistics Bar - Removed for cleaner UI */

.website-builder-container .card {
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.website-builder-container .card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.website-builder-container .bg-gradient-primary {
  background: #2563eb;
}

.domain-suggestion-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: white;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.domain-suggestion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: all 0.2s ease;
}

.domain-suggestion-card.available-domain::before {
  background: #10b981;
}

.domain-suggestion-card.unavailable-domain::before {
  background: #ef4444;
}

.domain-suggestion-card:hover {
  border-color: #2563eb;
  background-color: #f8f9fa;
}

.domain-suggestion-card.selected {
  border-color: #2563eb;
  background-color: #eff6ff;
}

.domain-suggestion-card.available-domain {
  border-color: #d1fae5;
}

.domain-suggestion-card.available-domain:hover {
  border-color: #10b981;
}

.domain-suggestion-card.unavailable-domain {
  border-color: #fee2e2;
  opacity: 0.6;
}

.domain-suggestion-card.unavailable-domain:hover {
  border-color: #ef4444;
}

.domain-suggestion-card .domain-status {
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.domain-suggestion-card .domain-name {
  font-size: 0.95rem;
  color: #1f2937;
  word-break: break-word;
  display: block;
  font-weight: 500;
}

.domain-suggestion-card input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.domain-suggestion-card .form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  margin: 0;
}

.domain-result-card {
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.domain-result-card:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.domain-result-card.available {
  background-color: #ffffff;
  border-left: 3px solid #10b981;
  border-color: #d1fae5;
}

.domain-result-card.unavailable {
  background-color: #ffffff;
  border-left: 3px solid #dc2626;
  border-color: #fee2e2;
}

.domain-result-card.error {
  background-color: #ffffff;
  border-left: 3px solid #f59e0b;
  border-color: #fef3c7;
}

.domain-result-card h5 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.domain-result-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-border {
  animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .website-builder-container {
    padding: 1rem 0;
  }

  .domain-suggestion-card {
    padding: 1rem;
  }

  .domain-result-card {
    padding: 1.25rem;
  }

  /* Mobile: Input group stack vertical */
  .domain-direct-wrapper .input-group,
  .domain-search-wrapper .input-group {
    flex-direction: column !important;
    display: flex !important;
    align-items: stretch !important;
  }
  
  .domain-direct-wrapper .input-group-lg,
  .domain-search-wrapper .input-group-lg {
    flex-direction: column !important;
  }

  .domain-direct-input,
  .domain-search-input {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border-right: 1px solid #d1d5db !important;
    border-bottom: none !important;
    width: 100%;
  }

  .domain-extension-select {
    border-radius: 0 !important;
    border-left: 1px solid #d1d5db !important;
    border-right: 1px solid #d1d5db !important;
    border-bottom: none !important;
    width: 100%;
    max-width: 100% !important;
  }

  .domain-direct-btn,
  .domain-search-btn {
    border-radius: 0 0 0.5rem 0.5rem !important;
    width: 100%;
    min-width: auto;
    margin-top: 0;
  }

  .domain-direct-wrapper .input-group-text,
  .domain-search-wrapper .input-group-text {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border-bottom: none;
    width: 100%;
    justify-content: center;
  }

  /* Cards mobile */
  .domain-direct-check-card .card-body,
  .domain-search-card .card-body {
    padding: 1.25rem !important;
  }

  /* Tabs mobile */
  .domain-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .domain-tabs .nav-link {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Botões mobile */
  .domain-direct-btn,
  .domain-search-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
  }

  /* Hints mobile */
  .direct-check-hints,
  .search-hints {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
}

@media (max-width: 575px) {
  .website-builder-container {
    padding: 0.75rem 0;
  }

  .domain-direct-check-card .card-body,
  .domain-search-card .card-body {
    padding: 1rem !important;
  }

  .domain-direct-input,
  .domain-search-input {
    font-size: 0.95rem;
    padding: 0.625rem 0.875rem !important;
  }

  .domain-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .domain-tabs .nav-link i {
    margin-right: 0.25rem;
  }
}

/* Button Styles */
.website-builder-container .btn-primary {
  background: #2563eb;
  border: none;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.website-builder-container .btn-primary:hover {
  background: #1e40af;
}

.website-builder-container .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Card Header Styles */
.card-header.bg-primary {
  background: #2563eb !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.card-header.bg-success {
  background: #10b981 !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.card-header.bg-danger {
  background: #dc2626 !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Form Styles */
.website-builder-container .form-control-lg,
.website-builder-container .form-select-lg {
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
}

.website-builder-container .form-control-lg:focus,
.website-builder-container .form-select-lg:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Icon Styles */
.website-builder-container .fas,
.website-builder-container .fa {
  margin-right: 0.5rem;
}

/* Tabs Styles */
.domain-tabs {
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0;
}

.domain-tabs .nav-link {
  color: #6b7280;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.domain-tabs .nav-link:hover {
  color: #2563eb;
  border-bottom-color: #e5e7eb;
}

.domain-tabs .nav-link.active {
  color: #2563eb;
  background: transparent;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

.domain-tabs .nav-link i {
  margin-right: 0.5rem;
}

.tab-content {
  margin-top: 0;
}

.tab-content .card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
