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

.checker-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.url-input-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.url-input {
  flex: 1;
  min-width: 300px;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.url-input:focus {
  outline: none;
  border-color: #007bff;
}

.check-button {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.check-button:hover {
  background: #0056b3;
}

.check-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.options-panel {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.options-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.option-item label {
  cursor: pointer;
  margin: 0;
}

.format-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.format-btn {
  padding: 8px 16px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.format-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.loading {
  display: none;
  text-align: center;
  padding: 40px;
}

.loading.show {
  display: block;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.results-container {
  display: none;
  margin-top: 30px;
}

.results-container.show {
  display: block;
}

.results-header {
  background: #28a745;
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
}

.results-header.has-issues {
  background: #dc3545;
}

.results-header h3 {
  margin: 0 0 10px 0;
}

.results-body {
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.severity-high {
  color: #dc3545;
  font-weight: 600;
}

.severity-medium {
  color: #fd7e14;
  font-weight: 600;
}

.severity-low {
  color: #ffc107;
  font-weight: 600;
}

.severity-info {
  color: #17a2b8;
}

.finding-item {
  padding: 15px;
  margin-bottom: 10px;
  border-left: 4px solid #ddd;
  background: #f8f9fa;
  border-radius: 4px;
}

.finding-item.high {
  border-left-color: #dc3545;
}

.finding-item.medium {
  border-left-color: #fd7e14;
}

.finding-item.low {
  border-left-color: #ffc107;
}

.finding-item.info {
  border-left-color: #17a2b8;
}

.finding-header {
  font-weight: 600;
  margin-bottom: 5px;
}

.finding-description {
  color: #666;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

.raw-output {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 20px;
}

.tab-container {
  margin-bottom: 20px;
}

.tab-buttons {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
}

.tab-button.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

.tab-content {
  display: none;
}

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

.info-box {
  background: #D9E1D7;
  border-left: 4px solid #1d7363;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.info-box h4 {
  margin-top: 0;
  color: #1d7363;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
}

.feature-list li:before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #28a745;
}

.example-links {
  margin-top: 15px;
}

.example-link {
  color: #007bff;
  margin-left: 10px;
  cursor: pointer;
}

.example-link:first-child {
  margin-left: 10px;
}

.example-link:not(:first-child) {
  margin-left: 5px;
}

.test-button {
  background: #28a745;
}

.test-button:hover {
  background: #218838;
}

.summary-section {
  margin-bottom: 20px;
}

.copy-button, .download-button {
  margin-top: 10px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-content {
  background-color: #fff;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 500px;
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.modal-body {
  padding: 25px;
}

.modal-body p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.privacy-notice {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 25px;
}

.modal-form-group {
  margin-bottom: 20px;
}

.modal-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.modal-form-group input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.modal-form-group input:focus {
  outline: none;
  border-color: #007bff;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.modal-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-btn-primary {
  background: #007bff;
  color: white;
}

.modal-btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.modal-btn-secondary {
  background: #6c757d;
  color: white;
}

.modal-btn-secondary:hover {
  background: #5a6268;
}

/* Support Offer Modal Styles */
.support-modal-content {
  max-width: 600px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.support-modal-header {
  background: linear-gradient(135deg, #1d7363 0%, #155a4d 100%);
  text-align: center;
  padding: 30px 25px;
}

.support-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.support-modal-header h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.support-message {
  font-size: 16px;
  color: #333;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.6;
}

.support-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.support-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.2s;
}

.support-feature:hover {
  transform: translateX(5px);
  background: #e9ecef;
}

.support-feature i {
  color: #1d7363;
  font-size: 24px;
  min-width: 24px;
}

.support-feature span {
  color: #333;
  font-weight: 500;
}

.support-cta {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #1d7363;
  margin-bottom: 25px;
}

.support-modal .modal-btn-primary {
  background: #1d7363;
  text-decoration: none;
}

.support-modal .modal-btn-primary:hover {
  background: #155a4d;
  box-shadow: 0 4px 12px rgba(29, 115, 99, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  .support-features {
    grid-template-columns: 1fr;
  }
}
