/* Mobile-First Responsive Design */
:root {
  --primary-color: #00d4ff;
  --secondary-color: #2ea4c0;
  --background-dark: #121212;
  --background-light: #1A1A1A;
  --text-light: #ffffff;
  --text-muted: #D3D3D3;
  --border-color: rgba(0, 212, 255, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.2);
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 1024px;
}

/* Global styles */
body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  overflow-x: hidden;
  box-sizing: border-box;
  font-size: 16px; /* Base font size for mobile */
  line-height: 1.5;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; /* Hidden by default */
  position: absolute;
  top: 6rem; /* Move further below the logo */
  right: 1rem;
  z-index: 1000;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 30px;
  background-color: rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  border: 2px solid #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #00d4ff;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--background-dark);
  z-index: 999;
  overflow-y: auto;
  padding: 80px 20px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.active {
  transform: translateX(0) !important;
}

.mobile-nav-section {
  margin-bottom: 2rem;
}

.mobile-nav-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-btn {
  display: block;
  width: 100%;
  background-color: var(--background-light);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: left;
}

.mobile-nav-btn:hover,
.mobile-nav-btn:focus {
  background-color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateX(4px);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 6px;
  padding: 8px;
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }
}

/* Header Responsive */
.header {
  background-color: var(--background-light);
  padding: 1rem;
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
}

/* Center-aligned text styles */
.center-text h2,
.center-text p {
  text-align: center;
}

.site-title {
  font-size: 2.5rem;
  color: var(--text-muted);
  font-weight: bold;
}

/* Navigation styles */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 6px;
  padding: 8px;
}

.nav-btn {
  background-color: #0c425e;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9rem;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 120px;
  max-width: 180px;
  text-align: center;
}

.nav-btn:hover {
  background-color: var(--secondary-color);
}

/* Ensure API Docs button is slightly smaller since it's alone on the last row */
#apiDocsBtn {
  min-width: 100px;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropdown-toggle {
  background-color: #0c425e;
  color: white;
  padding: 8px 16px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  min-width: 120px;
  max-width: 180px;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--background-light);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px var(--shadow-color);
  z-index: 1;
  border-radius: 4px;
}

/* Links inside the dropdown */
.dropdown-content button {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* Change color of dropdown links on hover */
.dropdown-content button:hover {background-color: #2ea4c0;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropdown-toggle {
  background-color: #2ea4c0;
}

/* Styles for the success content when it's visible */
.success-content-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

/* Main content styles */
.main {
  width: 100%;
  max-width: 100vw;
  padding: 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.content-view {
  background-color: #1A1A1A; /* Slightly lighter dark shade for content background */
  border-radius: 0.25rem;
  padding: 1rem;
  margin-bottom: 1rem; /* Space between content views */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
}

/* Dropdown styles */
select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #2C2C2C;
  border: 1px solid #0c425e;
  border-radius: 0.25rem;
  color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII, ...');
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.5rem;
  text-align: left;
  text-indent: 0.5rem;
  transition: all 0.2s ease;
}

/* Select focus state for better visibility */
select:focus {
  outline: none;
  border-color: #2ea4c0;
  box-shadow: 0 0 0 2px rgba(46, 164, 192, 0.5);
  background-color: #2C2C2C;
  color: white;
}

/* Select hover state for better UX */
select:hover {
  border-color: #1f5f7a;
  background-color: #333333;
  color: white;
}

/* Input and textarea styles */
input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  margin-bottom: 0.5rem; /* Margin below inputs and text areas */
  background-color: #000000; /* Pure black background for maximum contrast */
  border: 1px solid #0c425e; /* Blue border for a bit of color */
  border-radius: 0.25rem;
  color: #ffffff !important; /* Force bright white text color */
  font-size: 14px; /* Ensure readable font size */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Readable font */
  text-shadow: none; /* Remove any text shadow */
  overflow-wrap: break-word;
  word-wrap: break-word;
  resize: vertical;
}

/* Specific textarea sizing for better UX */
textarea {
  min-height: 120px;
  max-height: 400px;
  line-height: 1.4;
}

/* Input focus state for better visibility */
input[type="text"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #2ea4c0;
  box-shadow: 0 0 0 2px rgba(46, 164, 192, 0.5);
  background-color: #000000 !important; /* Force black background on focus */
  color: #ffffff !important; /* Force white text on focus */
}

/* Placeholder text styling for better readability */
input::placeholder,
textarea::placeholder {
  color: #999999 !important;
  opacity: 1;
  font-style: italic;
}

/* Input hover state for better UX */
input[type="text"]:hover,
input[type="url"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
textarea:hover {
  border-color: #1f5f7a;
  background-color: #111111 !important;
  color: #ffffff !important;
}

/* Input validation states */
input:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.3);
}

input:valid {
  border-color: #0c425e;
}

/* Performance test specific input styling */
#performanceUrl {
  transition: all 0.2s ease;
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #0c425e !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important; /* For webkit browsers */
}

/* Mobile test checkbox styling */
#mobileTest {
  accent-color: #2ea4c0;
  transform: scale(1.2);
}

#mobileTest:checked {
  accent-color: #2ea4c0;
}

/* Disabled viewport inputs when mobile is enabled */
input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Advanced options mobile test section */
.mobile-test-section {
  background: rgba(46, 164, 192, 0.1);
  border: 1px solid rgba(46, 164, 192, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
}

#performanceUrl:focus {
  transform: scale(1.01);
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #2ea4c0 !important;
  box-shadow: 0 0 0 3px rgba(46, 164, 192, 0.4) !important;
  -webkit-text-fill-color: #ffffff !important;
}

#performanceUrl:hover {
  background-color: #111111 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#performanceUrl::placeholder {
  color: #aaaaaa !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #aaaaaa !important;
}

/* Force all input text to be visible - override any browser styles */
input[type="url"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-background-clip: text !important;
}

/* Batch textarea styling for consistency */
#batchUrls {
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid #0c425e !important;
  font-family: 'Courier New', monospace !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

#batchUrls:focus {
  border-color: #2ea4c0 !important;
  box-shadow: 0 0 0 2px rgba(46, 164, 192, 0.3) !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#batchUrls::placeholder {
  color: #999999 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #999999 !important;
  font-style: italic !important;
}

/* Loading indicator styles */
.loading-indicator {
  color: #D3D3D3; /* Light grey for loading text */
  text-align: center;
  margin-top: 1rem;
}

/* Preformatted text block styles */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  padding: 1rem;
  margin: 0;
  background-color: #2C2C2C;
  border-radius: 0.25rem;
  color: #ffffff;
  border: 1px solid #0c425e;
}

/* PGP Encryption View styles */
#pgpEncryptionView {
  background-color: #1A1A1A; /* Slightly different shade for distinction */
  padding: 1rem;
  border-radius: 0.25rem; /* Consistent with other sections */
}

#keySelect {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem; /* Consistent spacing */
  background-color: #2C2C2C;
  border: 1px solid #0c425e;
  border-radius: 0.25rem;
  color: white;
}

/* File input styles */
input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #2C2C2C;
  border: 1px solid #0c425e;
  border-radius: 0.25rem;
  color: white;
}

/* Output styles */
#output {
  background-color: #2C2C2C;
  border: 1px solid #0c425e;
  padding: 0.5rem;
  margin-top: 1rem;
  border-radius: 0.25rem;
  color: white;
  min-height: 100px; /* Ensures a minimum height for visibility */
  word-wrap: break-word;
}

/* Additional styles for PGP Encryption View */
#pgpEncryptionView p {
  color: #D3D3D3; /* Consistent light grey color */
  font-size: 0.9rem; /* Slightly smaller font size */
  margin-top: 0.5rem;
}

/* iframe styles */
.content-view iframe {
  background-color: transparent;
  width: 100%;
  height: 100vh;
  border: none;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

/* Configuration styles */
.configuration {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: flex-start; 
}

.config-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

.config-column {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevent flex items from overflowing */
  max-width: calc(50% - 10px);
}

.config-column h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
}

.config-column label {
  display: block;
  margin-bottom: 5px;
}

.config-column input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #0c425e;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #fff;
  box-sizing: border-box;
}

.config-column input:focus {
  outline: none;
  border-color: #2ea4c0;
  box-shadow: 0 0 5px rgba(46, 164, 192, 0.3);
}

.config-column .tls-checkbox {
  align-self: flex-start;
}

/* Checkbox container styling for better alignment */
.config-column .checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 5px;
}

.config-column .checkbox-container label {
  color: #fff;
  margin: 0;
  flex-shrink: 0;
  min-width: 40px;
  font-weight: normal;
}

.config-column .checkbox-container input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
  accent-color: #0c425e;
  border: 1px solid #0c425e;
  background-color: #2a2a2a;
}

/* Hidden elements */
.hidden {
  display: none;
}

/* Formatted results styles */
:root {
  --primary-color: #0c425e;
  --primary-hover: #2ea4c0;
}

.result-section {
  margin: 20px 0;
  padding: 15px;
  background-color: #2C2C2C;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.section-title {
  color: #D3D3D3;
  font-size: 1.2em;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.section-content {
  color: #ffffff;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-error {
  background-color: #dc3545;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

/* Key-value pairs */
.key-value {
  display: flex;
  margin: 8px 0;
  padding: 8px;
  background-color: #1A1A1A;
  border-radius: 4px;
  border: 1px solid #0c425e;
}

.key-value.highlight {
  background-color: #0c425e;
  border-color: #2ea4c0;
}

.key-value .key {
  font-weight: bold;
  color: #2ea4c0;
  min-width: 150px;
  flex-shrink: 0;
}

.key-value .value {
  color: #ffffff;
  flex-grow: 1;
  word-break: break-word;
}

/* Formatted lists */
.formatted-list {
  margin: 10px 0;
  padding-left: 20px;
}

.formatted-list li {
  margin: 5px 0;
  color: #ffffff;
}

/* DNS records and code blocks */
.dns-record {
  background-color: #1A1A1A;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #0c425e;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  display: block;
  margin: 5px 0;
  word-break: break-all;
  color: #ffffff;
}

.ip-address {
  background-color: #0c425e;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #ffffff;
}

/* Blacklist specific styles */
.blacklist-item {
  margin: 10px 0;
  padding: 10px;
  background-color: #1A1A1A;
  border-radius: 6px;
  border: 1px solid #0c425e;
}

.blacklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.blacklist-details {
  color: #dc3545;
  font-size: 0.9em;
  margin-top: 5px;
}

.blacklist-error {
  color: #6c757d;
  font-size: 0.9em;
  margin-top: 5px;
}

.blacklist-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

/* Email header analysis styles */
.hop-item {
  margin: 8px 0;
  padding: 8px;
  background-color: #1A1A1A;
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
}

.hop-delay {
  color: #2ea4c0;
  font-weight: bold;
  font-style: italic;
}

.total-time {
  margin: 15px 0;
  padding: 10px;
  background-color: #0c425e;
  border-radius: 4px;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

.report-item {
  margin: 10px 0;
  padding: 10px;
  background-color: #1A1A1A;
  border-radius: 4px;
  border: 1px solid #0c425e;
}

.report-description {
  color: #D3D3D3;
  font-size: 0.9em;
  margin-top: 5px;
}

.test-item {
  margin: 8px 0;
  padding: 8px;
  background-color: #1A1A1A;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hash result styles */
.hash-result {
  margin: 15px 0;
  padding: 15px;
  background-color: #1A1A1A;
  border-radius: 6px;
  border: 1px solid #0c425e;
}

.hash-label {
  display: block;
  font-weight: bold;
  color: #2ea4c0;
  margin-bottom: 8px;
}

.hash-value {
  display: block;
  background-color: #2C2C2C;
  padding: 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  word-break: break-all;
  margin-bottom: 10px;
  border: 1px solid #0c425e;
  color: #ffffff;
}

.hash-value.selectable {
  cursor: text;
  user-select: all;
}

.copy-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.copy-btn:hover {
  background-color: var(--primary-hover);
}

/* Validation result styles */
.validation-success {
  color: #28a745;
  font-weight: bold;
  margin: 10px 0;
  padding: 10px;
  background-color: #1A1A1A;
  border: 1px solid #28a745;
  border-radius: 4px;
}

.validation-error {
  color: #dc3545;
  font-weight: bold;
  margin: 10px 0;
  padding: 10px;
  background-color: #1A1A1A;
  border: 1px solid #dc3545;
  border-radius: 4px;
}

.auth-message {
  margin: 10px 0;
  padding: 10px;
  background-color: #0c425e;
  border-radius: 4px;
  color: #ffffff;
}

.error-message {
  color: #dc3545;
  background-color: #1A1A1A;
  border: 1px solid #dc3545;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

.success-message {
  color: #28a745;
  background-color: #1A1A1A;
  border: 1px solid #28a745;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

.loading-message {
  color: #17a2b8;
  background-color: #1A1A1A;
  border: 1px solid #17a2b8;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #17a2b8;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

.loading-text {
  font-size: 14px;
}

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

.info-message {
  color: #3498db;
  background-color: #1A1A1A;
  border: 1px solid #3498db;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  font-style: italic;
}

/* Copy notification */
.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 1000;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Spam scan specific styles */
.spam-rule {
  display: flex;
  align-items: flex-start;
  margin: 8px 0;
  padding: 10px;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  border-radius: 6px;
  border-left: 4px solid #4a5568;
}

.rule-points {
  font-weight: bold;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 12px;
  min-width: 50px;
  text-align: center;
  font-size: 13px;
}

.rule-points.spam-positive {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  border: 1px solid #c53030;
}

.rule-points.spam-negative {
  background: linear-gradient(135deg, #38a169, #2f855a);
  color: white;
  border: 1px solid #2f855a;
}

.rule-points.spam-info {
  background: linear-gradient(135deg, #3182ce, #2c5282);
  color: white;
  border: 1px solid #2c5282;
}

.rule-details {
  flex: 1;
}

.rule-details strong {
  color: #e2e8f0;
  font-size: 14px;
}

.rule-description {
  color: #cbd5e0;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}

/* Enhanced message styles */
.warning-message {
  background: linear-gradient(135deg, #d69e2e, #b7791f);
  color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #ed8936;
  font-size: 14px;
  line-height: 1.5;
}

.port25-warning {
  background: linear-gradient(135deg, #d69e2e, #b7791f);
  color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #ed8936;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
  animation: slideIn 0.3s ease-out;
}

.port25-warning .warning-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

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

.technical-info {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #718096;
  font-size: 13px;
}

.technical-info code {
  background: #1a1a1a;
  color: #fbb6ce;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
}

.help-message {
  background: linear-gradient(135deg, #2b6cb0, #2c5282);
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #3182ce;
}

.help-message h4 {
  margin: 0 0 12px 0;
  color: #90cdf4;
  font-size: 15px;
}

.help-message ul {
  margin: 0;
  padding-left: 20px;
}

.help-message li {
  margin: 6px 0;
  line-height: 1.4;
  font-size: 13px;
}

/* DKIM generation styles */
.dkim-generation {
  margin-top: 20px;
}

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

.status-section .status-badge {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 5px;
}

.dkim-dns-record, .dkim-private-key {
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid #333;
}

.dkim-dns-record h4, .dkim-private-key h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2ea4c0;
}

.record-content, .key-content {
  background: #1a1a1a;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #333;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: 10px;
  color: #fff;
}

.key-content pre {
  background-color: #2C2C2C;
  padding: 1rem;
  border-radius: 4px;
  margin: 10px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  transition: filter 0.3s ease;
}

.key-content pre.blurred {
  filter: blur(5px);
  user-select: none;
}

.key-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.toggle-btn {
  background-color: #4a4a4a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.toggle-btn:hover {
  background-color: #5a5a5a;
}

.private-key-warning {
  background: #dc3545;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Loading and error states */
.loading {
  text-align: center;
  padding: 20px;
  color: #2ea4c0;
  font-style: italic;
}

.error {
  color: #dc3545;
  padding: 15px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  border-radius: 4px;
  margin: 10px 0;
}

/* DNS Lookup specific styles */
.dns-lookup-results {
  margin-top: 20px;
}

.dns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #2c3e50;
  border-radius: 8px;
}

.dns-query-info {
  display: flex;
  gap: 20px;
}

.dns-query-info .label {
  font-weight: bold;
  color: #3498db;
}

.dns-query-info .value {
  color: #ecf0f1;
}

.timestamp {
  color: #95a5a6;
  font-size: 0.9em;
}

.timestamp .label {
  font-weight: bold;
}

.record-item {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  background-color: #34495e;
  border-radius: 5px;
  border-left: 4px solid #3498db;
}

.record-number {
  font-weight: bold;
  color: #3498db;
  margin-right: 10px;
  min-width: 25px;
}

.record-value {
  flex: 1;
  font-family: 'Courier New', monospace;
}

.mx-priority, .srv-details, .soa-details {
  color: #95a5a6;
  font-size: 0.9em;
  margin-left: 10px;
}

.no-records {
  text-align: center;
  padding: 30px;
  color: #e74c3c;
  font-style: italic;
}

/* SSL Certificate specific styles */
.ssl-certificate-results {
  margin-top: 20px;
}

.certificate-subject, .certificate-issuer {
  font-family: 'Courier New', monospace;
  background-color: #2c3e50;
  padding: 8px;
  border-radius: 4px;
  color: #1abc9c;
  word-break: break-all;
}

.certificate-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.certificate-date {
  background-color: #34495e;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.certificate-date .label {
  font-weight: bold;
  color: #3498db;
  display: block;
  margin-bottom: 5px;
}

.certificate-date .value {
  color: #ecf0f1;
}

.expiry-warning {
  color: #e67e22 !important;
}

.expiry-danger {
  color: #e74c3c !important;
  font-weight: bold;
}

.troubleshooting {
  margin-top: 15px;
  padding: 15px;
  background-color: #2c3e50;
  border-radius: 8px;
  border-left: 4px solid #f39c12;
}

.troubleshooting strong {
  color: #f39c12;
}

/* Network test specific styles */
.network-result {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 15px;
  margin: 10px 0;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.network-result::-webkit-scrollbar {
  height: 8px;
}

.network-result::-webkit-scrollbar-track {
  background: #2c2c2c;
}

.network-result::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.network-result::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Streaming network test styles */
.network-result.streaming {
  border-left: 4px solid #2ea4c0;
  background: linear-gradient(90deg, #1a1a1a 0%, #1e3a4a 100%);
  position: relative;
}

.network-result.streaming::after {
  content: "● LIVE";
  position: absolute;
  top: 10px;
  right: 15px;
  background: #2ea4c0;
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  animation: pulse 2s infinite;
  z-index: 1;
}

.network-result.completed {
  border-left: 4px solid #4CAF50;
  background: #1a1a1a;
  position: relative;
}

.network-result.completed::after {
  content: "✓ COMPLETE";
  position: absolute;
  top: 10px;
  right: 15px;
  background: #4CAF50;
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  z-index: 1;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Time Tools specific styles */
.time-result-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
}

/* Enhanced time result container */
.time-result-container.enhanced {
  background: linear-gradient(135deg, rgba(46, 164, 192, 0.1), rgba(52, 152, 219, 0.05));
  border: 2px solid #2ea4c0;
  border-radius: 12px;
  padding: 0;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(46, 164, 192, 0.2);
}

.time-section {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.time-section:last-child {
  border-bottom: none;
}

.time-section.primary-section {
  background: linear-gradient(135deg, rgba(46, 164, 192, 0.15), rgba(52, 152, 219, 0.1));
  border-bottom: 2px solid rgba(46, 164, 192, 0.3);
}

.section-header {
  color: #3498db;
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.time-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.time-value.large {
  font-size: 16px;
  font-weight: bold;
  color: #ecf0f1;
}

.time-value.monospace {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  word-break: break-all;
}

/* Timezone comparison styles */
.timezone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.timezone-comparison {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #3498db;
}

.tz-name {
  font-weight: bold;
  color: #3498db;
  display: block;
  margin-bottom: 4px;
}

.tz-time {
  font-family: 'Courier New', monospace;
  color: #ecf0f1;
  font-size: 14px;
}

/* Responsive adjustments for enhanced time tools */
@media (max-width: 768px) {
  .main {
    padding: 0.5rem;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .content-view {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    overflow-x: hidden;
  }
  
  .config-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .config-column {
    max-width: 100%;
  }
  
  .time-grid.compact {
    grid-template-columns: 1fr;
  }
  
  .timezone-grid {
    grid-template-columns: 1fr;
  }
  
  .time-value.large {
    font-size: 14px;
  }
  
  .section-header {
    font-size: 14px;
  }
  
  /* Fix textarea and input overflow */
  textarea,
  input[type="text"],
  input[type="url"],
  input[type="password"],
  input[type="number"] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
  }
  
  /* Ensure proper container sizing */
  .url-input-group,
  .batch-input-group,
  .ssl-scan-input-group,
  .ssl-validation-input-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* SMTP Test Enhanced Styles */
.smtp-result-container.enhanced {
  background: linear-gradient(135deg, rgba(46, 164, 192, 0.1), rgba(52, 152, 219, 0.05));
  border: 2px solid #2ea4c0;
  border-radius: 12px;
  padding: 0;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(46, 164, 192, 0.2);
}

.smtp-section {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smtp-section:last-child {
  border-bottom: none;
}

.smtp-section.primary-section {
  background: linear-gradient(135deg, rgba(46, 164, 192, 0.15), rgba(52, 152, 219, 0.1));
  border-bottom: 2px solid rgba(46, 164, 192, 0.3);
}

.smtp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.smtp-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.smtp-value-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smtp-label {
  font-weight: bold;
  color: #2ea4c0;
  font-size: 14px;
  margin-bottom: 5px;
}

.smtp-value-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
}

.smtp-value {
  font-size: 14px;
  color: #ffffff;
  flex: 1;
  word-break: break-word;
}

.smtp-value.large {
  font-size: 16px;
  font-weight: bold;
  color: #ecf0f1;
}

.smtp-value.monospace {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  background: #1a1a1a;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #3a3a3a;
}

/* Security Analysis Styles */
.security-overview {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.security-score {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.score-label {
  color: #3498db;
  font-weight: bold;
}

.score-value {
  font-size: 18px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
}

/* Recommendation Styles */
.recommendation-group {
  margin-bottom: 20px;
}

.recommendation-title {
  color: #3498db;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-list {
  margin: 0;
  padding-left: 20px;
  color: #ffffff;
}

.recommendation-list.issues li {
  color: #e74c3c;
  margin-bottom: 5px;
}

.recommendation-list.recommendations li {
  color: #27ae60;
  margin-bottom: 5px;
}

.port-recommendation {
  color: #ffffff;
  background: rgba(52, 152, 219, 0.1);
  padding: 10px;
  border-radius: 4px;
  border-left: 3px solid #3498db;
  margin: 0;
  font-style: italic;
}

/* Status Badge Styles (enhanced) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.badge-success {
  background-color: #27ae60;
  color: white;
}

.badge-error {
  background-color: #e74c3c;
  color: white;
}

.badge-warning {
  background-color: #f39c12;
  color: white;
}

.badge-info {
  background-color: #3498db;
  color: white;
}

/* SMTP Responsive Design */
@media (max-width: 768px) {
  .smtp-grid.compact {
    grid-template-columns: 1fr;
  }
  
  .smtp-value.large {
    font-size: 14px;
  }
  
  .security-score {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .score-value {
    font-size: 16px;
    padding: 6px 12px;
  }
  
  .smtp-section {
    padding: 15px;
  }
}

.time-result-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.time-value-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-label {
  font-weight: bold;
  color: #2ea4c0;
  font-size: 14px;
  margin-bottom: 5px;
}

.time-value-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
}

.time-value {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #ffffff;
  flex: 1;
  word-break: break-all;
}

.time-value.selectable {
  user-select: all;
  cursor: text;
}

.time-past {
  color: #e74c3c !important;
}

.time-future {
  color: #27ae60 !important;
}

/* Real-time clock styles */
.real-time-display {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 2px solid #3498db;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.clock-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.clock-section:last-child {
  margin-bottom: 0;
}

.clock-label {
  font-weight: bold;
  color: #3498db;
  font-size: 14px;
}

.clock-value-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #34495e;
  border-radius: 6px;
}

.clock-value {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #ecf0f1;
  font-weight: bold;
  flex: 1;
}

.clock-value.selectable {
  user-select: all;
  cursor: text;
  background: rgba(52, 152, 219, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Time input helper buttons */
.time-input-helper {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  align-items: center;
}

.use-current-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.use-current-btn:hover {
  background: #2ecc71;
}

/* Enhanced copy button for time tools */
.time-result-container .copy-btn,
.real-time-display .copy-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 35px;
}

.time-result-container .copy-btn:hover,
.real-time-display .copy-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
}

/* Time conversion input improvements */
.time-tools-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid #333;
}

.time-tools-section h3 {
  color: #3498db;
  margin-bottom: 15px;
  font-size: 18px;
}

.time-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.time-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.time-input-row input {
  flex: 1;
  min-width: 200px;
}

.time-input-row select {
  min-width: 200px;
}

.time-input-row button {
  white-space: nowrap;
}

/* Responsive improvements for time tools */
@media (max-width: 768px) {
  .time-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .time-input-row input,
  .time-input-row select,
  .time-input-row button {
    min-width: auto;
    width: 100%;
  }
  
  .time-value-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .clock-value-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .real-time-display {
    padding: 15px;
  }
}

/* SMTP Capabilities and Auth Methods */
.capabilities-container,
.auth-methods-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.capability-item,
.auth-method {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
  border: 1px solid #4a5568;
  transition: all 0.2s ease;
}

.capability-item:hover,
.auth-method:hover {
  background: linear-gradient(135deg, #4a5568, #718096);
  border-color: #718096;
  transform: translateY(-1px);
}

.auth-method.none {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #a0aec0;
  font-style: italic;
}

.capabilities-note,
.auth-methods-note {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 8px;
  font-style: italic;
}

/* API Documentation styles */
.api-endpoint {
  background-color: #1A1A1A;
  border: 1px solid #0c425e;
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.api-endpoint h3 {
  color: #2ea4c0;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.api-endpoint h4 {
  color: #00d4ff;
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.api-endpoint ul {
  list-style: none;
  padding-left: 0;
}

.api-endpoint ul li {
  margin-bottom: 0.5rem;
}

.api-endpoint ul li strong {
  color: #D3D3D3;
}

.api-endpoint code {
  background-color: #2C2C2C;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  font-family: 'Courier New', monospace;
  color: #ffcc00;
}

/* DNS Propagation and Tools */
.dns-server-result {
  background-color: #3a3a3a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.dns-server-result:hover {
  border-color: #555;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.server-header {
  font-size: 1.1em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-header strong {
  color: #eee;
}

.response-time {
  font-size: 0.9em;
  color: #aaa;
}

.server-ip {
  font-family: 'Courier New', Courier, monospace;
  color: #ccc;
  margin-bottom: 8px;
}

.server-records {
  padding-left: 15px;
  border-left: 2px solid #555;
  color: #ddd;
}

.server-error {
  color: #ff6b6b;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}

.record-type-result {
  background-color: #333;
  border: 1px solid #444;
  border-radius: 4px;
}

.ssl-scan-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ssl-scan-input-group input {
  width: 200px; /* Fixed width for hostname/IP input */
  flex-grow: 0;
  flex-shrink: 0;
}

.ssl-scan-input-group input[type="text"][placeholder="443"] {
  width: 75px; /* Fixed width for port input */
  flex-grow: 0;
  flex-shrink: 0;
}

.ssl-scan-input-group button {
  white-space: nowrap;
}

.ssl-validation-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ssl-validation-input-group input {
  width: 200px; /* Fixed width for hostname/IP input */
  flex-grow: 0;
  flex-shrink: 0;
}

.ssl-validation-input-group input[type="text"][placeholder="443"] {
  width: 75px; /* Fixed width for port input */
  flex-grow: 0;
  flex-shrink: 0;
}

.ssl-validation-input-group button {
  white-space: nowrap;
}

.secret-text {
  filter: blur(5px);
  transition: filter 0.3s ease;
  font-family: monospace;
  background-color: #2C2C2C;
  padding: 1rem;
  border-radius: 4px;
  margin: 10px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.secret-text.unblurred {
  filter: none;
}

.secret-controls {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.nav-btn.danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.nav-btn.danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.secret-display-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

#secretQrcode {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile layout for secret sharing - QR code below share link */
@media (max-width: 768px) {
  .success-content-flex {
    flex-direction: column;
    gap: 15px;
  }
  
  #qrcodeWrapper {
    align-self: center;
    margin-top: 10px;
  }
}

/* Client Settings specific styles */
.client-settings {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.client-settings .key-value {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.client-settings .key {
  font-weight: bold;
  color: #2ea4c0;
  min-width: 30px;
  text-align: right;
}

.client-settings .value {
  color: #ffffff;
  font-family: monospace;
}

/* Client hostname styles */
.client-hostname {
  font-family: monospace;
  padding: 4px 0;
  color: #2ea4c0;
}

/* IP Reputation Checker Styles */
.reputation-result {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid #333;
}

.score-container {
  text-align: center;
  margin: 20px 0;
}

.reputation-score {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 5px;
}

.score-label {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.status-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.stat {
  text-align: center;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 5px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.blacklist-results {
  margin-top: 20px;
}

.blacklist-results h3 {
  color: #fff;
  margin-bottom: 15px;
}

.blacklist-results ul {
  list-style: none;
  padding: 0;
}

.blacklist-results li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  background: #2a2a2a;
}

.blacklist-results li.listed {
  background: #4a1a1a;
  border-left: 4px solid #ff4444;
}

.blacklist-results li.not-listed {
  background: #1a4a1a;
  border-left: 4px solid #44ff44;
}

.blacklist-results li.error {
  background: #4a4a1a;
  border-left: 4px solid #ffaa00;
}

.blacklist-results .status {
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

.blacklist-results .provider-info {
  font-size: 11px;
  color: #888;
  margin-top: 5px;
}

.blacklist-results .error {
  color: #ffaa00;
  font-size: 11px;
}

.warning-message {
  background: #4a4a1a;
  border: 1px solid #ffaa00;
  border-radius: 5px;
  padding: 10px;
  margin: 15px 0;
  color: #ffaa00;
}

.error-message {
  background: #4a1a1a;
  border: 1px solid #ff4444;
  border-radius: 5px;
  padding: 10px;
  margin: 15px 0;
  color: #ff4444;
}

.timestamp {
  text-align: center;
  margin-top: 20px;
  color: #888;
  font-size: 12px;
}

/* IP Reputation Checker Styles */
.ip-reputation-checker {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.ip-reputation-checker .input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.ip-reputation-checker .form-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.reputation-result {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.score-container {
  text-align: center;
  margin: 20px 0;
}

.reputation-score {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 5px;
}

.score-label {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.status-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}

.summary-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  margin: 10px;
}

.stat-label {
  display: block;
  color: #888;
  font-size: 14px;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.blacklist-results {
  margin-top: 20px;
}

.blacklist-results h3 {
  color: #fff;
  margin-bottom: 15px;
}

.blacklist-results ul {
  list-style: none;
  padding: 0;
}

.blacklist-results li {
  padding: 12px;
  margin: 8px 0;
  border-radius: 4px;
  background: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.blacklist-results li strong {
  color: #fff;
  margin-right: 10px;
}

.blacklist-results .status {
  font-weight: bold;
  margin-left: auto;
  margin-right: 10px;
}

.blacklist-results .listed {
  border-left: 4px solid #ff4444;
}

.blacklist-results .listed .status {
  color: #ff4444;
}

.blacklist-results .not-listed {
  border-left: 4px solid #00cc00;
}

.blacklist-results .not-listed .status {
  color: #00cc00;
}

.blacklist-results .error {
  border-left: 4px solid #ff8800;
}

.blacklist-results .error .status {
  color: #ff8800;
}

.blacklist-results .error span.error {
  color: #ff8800;
  font-size: 0.9em;
  margin-left: 10px;
  font-style: italic;
}

.provider-info {
  color: #888;
  font-size: 12px;
  margin-top: 5px;
  width: 100%;
}

.timestamp {
  margin-top: 20px;
  text-align: center;
  color: #888;
  font-size: 12px;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: #888;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 0 auto 10px;
}

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

/* SPF Record Formatting */
.spf-record-formatted {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.spf-record-parts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spf-version {
  color: #4CAF50;
  font-weight: bold;
  font-size: 16px;
}

.spf-mechanisms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mechanism {
  background-color: #2a2a2a;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #555;
  font-size: 13px;
  white-space: nowrap;
}

.mechanism-include {
  background-color: #1565C0;
  color: #E3F2FD;
  border-color: #1976D2;
}

.mechanism-ip {
  background-color: #E65100;
  color: #FFF3E0;
  border-color: #FF9800;
}

.mechanism-dns {
  background-color: #2E7D32;
  color: #E8F5E8;
  border-color: #4CAF50;
}

.mechanism-all {
  background-color: #C62828;
  color: #FFEBEE;
  border-color: #F44336;
  font-weight: bold;
}

/* SPF Mechanisms Table Styling */
.mechanisms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Courier New', Consolas, monospace;
}

.mechanisms-table th {
  background-color: #2d2d2d;
  color: #ffffff;
  padding: 12px 8px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #444;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mechanism-row {
  border-bottom: 1px solid #333;
}

.mechanism-row:hover {
  background-color: #252525;
}

.mechanism-row:last-child {
  border-bottom: none;
}

.mechanisms-table td {
  padding: 10px 8px;
  font-size: 13px;
  vertical-align: middle;
}

/* Qualifier styling */
.qualifier-cell {
  width: 80px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.qualifier-pass {
  color: #4CAF50;
}

.qualifier-fail {
  color: #F44336;
}

.qualifier-soft {
  color: #FF9800;
}

.qualifier-neutral {
  color: #9E9E9E;
}

.qualifier-default {
  color: #2196F3;
}

/* Type styling */
.type-cell {
  width: 100px;
  font-weight: 600;
}

.type-include {
  color: #2196F3;
}

.type-ip {
  color: #FF9800;
}

.type-dns {
  color: #4CAF50;
}

.type-all {
  color: #F44336;
  font-weight: bold;
}

.type-default {
  color: #9E9E9E;
}

/* Value styling */
.value-cell {
  color: #E0E0E0;
  word-break: break-all;
  width: auto;
  min-width: 150px;
}

.no-value {
  color: #666;
  font-style: italic;
}

/* DKIM Record Formatting */
.dkim-record-formatted {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  word-break: break-all;
  overflow-wrap: break-word;
}

.dkim-component {
  display: inline-block;
  margin: 2px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  word-break: break-all;
  white-space: normal;
}

.dkim-version {
  background-color: #1565C0;
  color: #E3F2FD;
  border: 1px solid #1976D2;
}

.dkim-algorithm {
  background-color: #2E7D32;
  color: #E8F5E8;
  border: 1px solid #4CAF50;
}

.dkim-public-key {
  background-color: #E65100;
  color: #FFF3E0;
  border: 1px solid #FF9800;
}

.dkim-service {
  background-color: #6A1B9A;
  color: #F3E5F5;
  border: 1px solid #9C27B0;
}

.dkim-flags {
  background-color: #C62828;
  color: #FFEBEE;
  border: 1px solid #F44336;
}

.dkim-headers {
  background-color: #1565C0;
  color: #E3F2FD;
  border: 1px solid #1976D2;
}

/* DKIM Results Styling */
.dkim-results {
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}

.dkim-results.success {
  background: #1A1A1A;
}

.dkim-results.error {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
}

.dkim-results .status-section {
  margin-bottom: 20px;
}

.dkim-results .record-display {
  margin: 15px 0;
}

.dkim-results .mechanisms-section {
  margin: 20px 0;
}

.dkim-results .info-section {
  margin: 20px 0;
}

.dkim-results .info-section ul {
  list-style: none;
  padding: 0;
}

.dkim-results .info-section li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.dkim-results .info-section li:last-child {
  border-bottom: none;
}

/* Component and Value cell styling for DKIM table */
.component-cell {
  width: 100px;
  font-weight: 600;
  color: #E0E0E0;
}

.value-cell.value-long {
  color: #FF9800;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.value-cell.value-normal {
  color: #E0E0E0;
}

.description-cell {
  color: #B0B0B0;
  font-style: italic;
}


/* Performance Test Styles */
.performance-section {
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.url-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
}

.batch-input-group {
  margin: 15px 0;
}

.performance-options {
  border-top: 1px solid #333;
  padding-top: 15px;
  margin-top: 15px;
}

.performance-results {
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.performance-header {
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.test-info {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 14px;
  color: #D3D3D3;
  flex-wrap: wrap;
  align-items: center;
}

.test-url {
  font-weight: bold;
  color: #2ea4c0;
  word-break: break-all;
  flex: 1 1 100%;
  margin-bottom: 8px;
}

.test-mode {
  background: rgba(46, 164, 192, 0.15);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #2ea4c0;
  border: 1px solid rgba(46, 164, 192, 0.3);
  white-space: nowrap;
}

.performance-score-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
  border-radius: 12px;
  border: 1px solid #333;
  flex-wrap: wrap;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) 0deg, var(--score-color) calc(var(--score, 0) * 3.6deg), #333 calc(var(--score, 0) * 3.6deg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  background: #1A1A1A;
  border-radius: 50%;
  z-index: 1;
}

.score-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--score-color);
  z-index: 2;
  position: relative;
}

.score-label {
  font-size: 12px;
  color: #D3D3D3;
  z-index: 2;
  position: relative;
  margin-top: -5px;
}

.screenshot-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  margin-top: 20px;
}

.screenshot-container h4 {
  color: #D3D3D3;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
}

.page-screenshot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.page-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.grade-info {
  flex: 1;
}

.grade {
  font-size: 24px;
  font-weight: bold;
  margin: 5px 0;
}

.load-time {
  font-size: 18px;
  color: #D3D3D3;
  margin: 5px 0;
}

.core-web-vitals, .detailed-metrics, .resource-analysis, .network-analysis {
  margin: 30px 0;
  padding: 20px;
  background: #2A2A2A;
  border-radius: 8px;
  border: 1px solid #333;
}

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

.vital-metric {
  background: #1A1A1A;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #333;
  text-align: center;
}

.vital-name {
  font-size: 14px;
  color: #D3D3D3;
  margin-bottom: 8px;
}

.vital-value {
  font-size: 18px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
}

.vital-good {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.vital-needs-improvement {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.vital-poor {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1A1A1A;
  border-radius: 4px;
  border: 1px solid #333;
}

.metric-label {
  color: #D3D3D3;
}

.metric-value {
  font-weight: bold;
  color: #ffffff;
}

.resource-summary, .network-stats {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.resource-stat, .network-stat {
  background: #1A1A1A;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #333;
  min-width: 120px;
}

.stat-label {
  font-size: 14px;
  color: #D3D3D3;
  display: block;
}

.stat-value {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  display: block;
  margin-top: 2px;
}

.stat-value.error {
  color: #dc3545;
}

.stat-value.success {
  color: #28a745;
}

.resource-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.resource-type {
  background: #1A1A1A;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #333;
}

.type-name {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.type-stats {
  font-size: 14px;
  color: #D3D3D3;
  display: flex;
  gap: 10px;
}

.status-codes {
  margin-top: 15px;
}

.status-codes h5 {
  margin: 0 0 10px 0;
  color: #ffffff;
}

.status-codes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-code {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.status-success {
  background: #d4edda;
  color: #155724;
}

.status-redirect {
  background: #d1ecf1;
  color: #0c5460;
}

.status-client-error {
  background: #fff3cd;
  color: #856404;
}

.status-server-error {
  background: #f8d7da;
  color: #721c24;
}

.status-other {
  background: #e2e3e5;
  color: #383d41;
}

.recommendations {
  margin: 30px 0;
  padding: 25px;
  background: #1A1A1A;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recommendations h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2ea4c0;
}

.no-recommendations {
  text-align: center;
  padding: 30px;
  color: #28a745;
  font-size: 16px;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 8px;
  font-style: italic;
}

.recommendation {
  background: #2A2A2A !important;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  border-left: 4px solid #D3D3D3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: #ffffff !important;
}

.recommendation:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #444;
}

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

.recommendation.medium {
  border-left-color: #ffc107;
}

.recommendation.low {
  border-left-color: #28a745;
}

/* Force all recommendation content to use dark theme */
.recommendation,
.recommendation *,
.rec-header,
.rec-header *,
.rec-title-section,
.rec-title-section *,
.rec-category,
.rec-content,
.rec-content *,
.rec-issue,
.rec-recommendation,
.rec-impact {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Specific color overrides for elements that should have color */
.rec-issue strong {
  color: #ff6b7d !important;
}

.rec-recommendation strong {
  color: #2ea4c0 !important;
}

.impact-label {
  color: #D3D3D3 !important;
}

.impact-value {
  background: rgba(255, 193, 7, 0.2) !important;
  color: #ffc107 !important;
}

.rec-recommendation {
  background: rgba(46, 164, 192, 0.1) !important;
}

.rec-impact {
  background: rgba(255, 255, 255, 0.05) !important;
}

.recommendation.high {
  border-left-color: #dc3545;
  background: #fff5f5;
}

.recommendation.medium {
  border-left-color: #ffc107;
  background: #fffef5;
}

.recommendation.low {
  border-left-color: #28a745;
  background: #f5fff5;
}

.rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Recommendation Header Styling */
.rec-header {
  border-bottom: 1px solid #444;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.rec-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .rec-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .recommendation {
    padding: 15px;
  }
  
  .recommendations {
    padding: 20px 15px;
  }
  
  .rec-recommendation {
    margin-left: 0;
    padding-left: 8px;
  }
}

.rec-category {
  font-weight: bold;
  color: #ffffff;
  font-size: 16px;
  flex: 1;
}

.rec-priority {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.rec-priority {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  border: 1px solid;
}

.priority-high {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b7d;
  border-color: #dc3545;
}

.priority-medium {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border-color: #ffc107;
}

.priority-low {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border-color: #28a745;
}

/* Recommendation Content Styling */
.rec-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent !important;
  color: #ffffff !important;
}

.rec-issue {
  padding: 8px 0;
  line-height: 1.5;
  background: transparent !important;
  color: #ffffff !important;
}

.rec-issue strong {
  color: #ff6b7d !important;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.rec-recommendation {
  padding: 8px 0;
  line-height: 1.5;
  border-left: 3px solid #2ea4c0;
  padding-left: 12px;
  margin-left: 8px;
  background: rgba(46, 164, 192, 0.1) !important;
  border-radius: 0 4px 4px 0;
  color: #ffffff !important;
}

.rec-recommendation strong {
  color: #2ea4c0 !important;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.rec-impact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 4px;
  margin-top: 4px;
  color: #ffffff !important;
}

.impact-label {
  font-size: 12px;
  color: #D3D3D3 !important;
  font-weight: 500;
}

.impact-value {
  font-size: 12px;
  font-weight: bold;
  text-transform: capitalize;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.2) !important;
  color: #ffc107 !important;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.no-recommendations {
  text-align: center;
  color: #28a745;
  font-weight: bold;
  padding: 20px;
  background: #d4edda;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
}

.batch-results {
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.batch-summary {
  color: #D3D3D3;
  margin: 10px 0 20px 0;
  font-size: 14px;
}

.batch-result {
  background: #2A2A2A;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
}

.batch-result.error {
  background: #fff5f5;
  border-color: #f5c6cb;
}

.batch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.batch-url {
  font-weight: bold;
  color: #2ea4c0;
  word-break: break-all;
  flex: 1;
}

.batch-score {
  font-weight: bold;
  white-space: nowrap;
  margin-left: 15px;
}

.batch-metrics {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #D3D3D3;
  margin: 8px 0;
  flex-wrap: wrap;
}

.batch-metrics span {
  background: #1A1A1A;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #333;
}

.batch-actions {
  margin-top: 10px;
}

.view-details-btn {
  background: #0c425e;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.view-details-btn:hover {
  background: #2ea4c0;
}

.batch-error {
  color: #dc3545;
  font-weight: bold;
}

.performance-help {
  margin-top: 40px;
  padding: 20px;
  background: #2A2A2A;
  border-radius: 8px;
  border: 1px solid #333;
}

.help-content h4 {
  color: #2ea4c0;
  margin: 15px 0 8px 0;
}

.help-content ul {
  margin: 8px 0;
  padding-left: 20px;
  color: #D3D3D3;
}

.help-content li {
  margin: 5px 0;
  line-height: 1.4;
  color: #D3D3D3;
}

.loading-container {
  text-align: center;
  padding: 40px;
  background: #2A2A2A;
  border-radius: 8px;
  border: 1px solid #333;
  margin: 20px 0;
}

.loading {
  font-size: 16px;
  color: #2ea4c0;
  font-weight: bold;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #333;
  border-top: 2px solid #2ea4c0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Mobile responsiveness for performance test */
@media (max-width: 768px) {
  .performance-score-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .vitals-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .resource-summary, .network-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .batch-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .batch-metrics {
    justify-content: flex-start;
  }
  
  .test-info {
    flex-direction: column;
    gap: 5px;
  }
  
  .screenshot-container {
    min-width: 100%;
    max-width: 100%;
    margin-top: 15px;
  }
  
  .page-screenshot {
    max-width: 100%;
  }
  
  .dkim-component {
    display: block;
    margin: 4px 0;
    width: 100%;
  }
  
  .dkim-record-formatted {
    font-size: 12px;
    padding: 8px;
  }
}

/* ===== SEO ANALYZER STYLES ===== */

/* SEO Analysis Sections */
.seo-section {
  margin: 20px 0;
  padding: 20px;
  background: #1A1A1A;
  border-radius: 10px;
  border: 1px solid #333;
}

.seo-section h3 {
  color: #2ea4c0;
  margin-bottom: 15px;
  font-size: 18px;
}

/* SEO Results Container */
.seo-results {
  background: #1A1A1A;
  border-radius: 10px;
  padding: 25px;
  margin: 20px 0;
  border: 1px solid #333;
  color: #ffffff;
}

.seo-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #2ea4c0;
}

.seo-header h3 {
  color: #2ea4c0;
  font-size: 24px;
  margin-bottom: 15px;
}

/* SEO Score Circle */
.seo-score-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
  padding: 30px;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
  border-radius: 12px;
  border: 1px solid #333;
  flex-wrap: wrap;
}

/* SEO Category Scores */
.seo-categories {
  margin: 30px 0;
}

.seo-categories h4 {
  color: #D3D3D3;
  font-size: 18px;
  margin-bottom: 20px;
}

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

.category-score {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #1A1A1A;
  border-radius: 6px;
  border: 1px solid #333;
}

.category-name {
  min-width: 120px;
  font-weight: 500;
  color: #D3D3D3;
}

.category-bar {
  flex: 1;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.category-fill {
  height: 100%;
  transition: width 0.8s ease;
  border-radius: 4px;
}

.category-value {
  min-width: 50px;
  text-align: right;
  font-weight: bold;
  color: #ffffff;
}

/* SEO Details */
.seo-details {
  margin: 30px 0;
}

.seo-details h4 {
  color: #D3D3D3;
  font-size: 18px;
  margin-bottom: 20px;
}

.seo-detail-section {
  margin: 25px 0;
  padding: 20px;
  background: #2A2A2A;
  border-radius: 8px;
  border: 1px solid #333;
}

.seo-detail-section h5 {
  color: #D3D3D3;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1A1A1A;
  border-radius: 4px;
  border: 1px solid #333;
}

.detail-label {
  font-weight: 500;
  color: #D3D3D3;
}

.detail-value {
  font-weight: bold;
  color: #ffffff;
}

.detail-value.success {
  color: #27ae60;
}

.detail-value.warning {
  color: #f39c12;
}

.detail-value.error {
  color: #e74c3c;
}

/* SEO Recommendations */
.seo-recommendations {
  margin: 30px 0;
}

.seo-recommendations h4 {
  color: #D3D3D3;
  font-size: 18px;
  margin-bottom: 20px;
}

.recommendations-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recommendation-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1A1A1A;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommendation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recommendation-card.type-error {
  border-color: #e74c3c;
  background: #1A1A1A;
}

.recommendation-card.type-warning {
  border-color: #f39c12;
  background: #1A1A1A;
}

.recommendation-card.type-info {
  border-color: #3498db;
  background: #1A1A1A;
}

.recommendation-card.success {
  border-color: #27ae60;
  background: #1A1A1A;
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.recommendation-icon {
  font-size: 18px;
}

.recommendation-title {
  flex: 1;
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
}

.recommendation-priority {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.recommendation-card.priority-high .recommendation-priority {
  background: #e74c3c;
  color: white;
}

.recommendation-card.priority-medium .recommendation-priority {
  background: #f39c12;
  color: white;
}

.recommendation-card.priority-low .recommendation-priority {
  background: #95a5a6;
  color: white;
}

.recommendation-description {
  color: #D3D3D3;
  line-height: 1.5;
  margin-bottom: 12px;
}

.recommendation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #95a5a6;
}

.recommendation-category {
  background: rgba(46, 164, 192, 0.2);
  color: #2ea4c0;
  padding: 2px 6px;
  border-radius: 6px;
}

.recommendation-impact {
  font-style: italic;
}

/* Batch SEO Results */
.batch-seo-results {
  margin: 20px 0;
}

.batch-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2ea4c0;
}

.batch-header h3 {
  color: #2ea4c0;
  font-size: 22px;
  margin-bottom: 8px;
}

.batch-summary {
  color: #D3D3D3;
  font-size: 14px;
}

.batch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.batch-result-card {
  padding: 20px;
  background: #1A1A1A;
  border-radius: 10px;
  border: 1px solid #333;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.batch-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 164, 192, 0.2);
  border-color: #2ea4c0;
}

.batch-result-card.error {
  border-color: #e74c3c;
  cursor: default;
}

.batch-result-card.error:hover {
  transform: none;
  box-shadow: none;
  border-color: #e74c3c;
}

.batch-url {
  font-weight: bold;
  color: #2ea4c0;
  margin-bottom: 12px;
  word-break: break-all;
}

.batch-score {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.batch-score-number {
  font-size: 28px;
  font-weight: bold;
}

.batch-grade {
  font-size: 18px;
  font-weight: bold;
}

.batch-issues {
  color: #D3D3D3;
  font-size: 14px;
  margin-bottom: 8px;
}

.batch-error {
  color: #e74c3c;
  font-size: 14px;
}

.batch-action {
  color: #2ea4c0;
  font-size: 12px;
  text-align: right;
  font-style: italic;
}

/* SEO Input Styling */
#seoUrl {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #0c425e !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: all 0.2s ease;
}

#seoUrl:focus {
  border-color: #2ea4c0 !important;
  box-shadow: 0 0 0 3px rgba(46, 164, 192, 0.1) !important;
  outline: none !important;
}

#batchSeoUrls {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #0c425e !important;
  font-size: 14px !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: all 0.2s ease;
}

#batchSeoUrls:focus {
  border-color: #2ea4c0 !important;
  box-shadow: 0 0 0 3px rgba(46, 164, 192, 0.1) !important;
  outline: none !important;
}

/* SEO Help Section */
.seo-help {
  margin: 30px 0;
  color: #D3D3D3;
}

.seo-help summary {
  color: #2ea4c0;
  font-weight: bold;
  font-size: 16px;
}

.seo-help .help-content {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-top: 10px;
}

.seo-help h4 {
  color: #2ea4c0;
  margin: 20px 0 10px 0;
  font-size: 16px;
}

.seo-help ul {
  margin: 10px 0;
  padding-left: 20px;
}

.seo-help li {
  margin: 5px 0;
  line-height: 1.4;
}

/* Responsive SEO Styles */
@media (max-width: 768px) {
  .seo-score-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .batch-cards {
    grid-template-columns: 1fr;
  }
  
  .category-score {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .detail-item {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  
  .screenshot-container {
    min-width: 100%;
    max-width: 100%;
    margin-top: 15px;
  }
  
  .page-screenshot {
    max-width: 100%;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
    top: 6rem; /* Ensure it's below the logo on mobile too */
  }
  
  /* Hide desktop navigation */
  .desktop-nav {
    display: none;
  }
  
  /* Show mobile navigation when active */
  .mobile-nav {
    display: block;
    transform: translateX(-100%);
  }
  
  .mobile-nav.active {
    transform: translateX(0) !important;
  }
  
  /* Header adjustments */
  .header {
    padding: 0.5rem;
  }
  
  /* Main content adjustments */
  .main {
    padding: 0.5rem;
    margin-top: 0;
  }
  
  .content-view {
    padding: 1rem;
    margin: 0.5rem 0;
  }
  
  /* Form improvements for mobile */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  select,
  textarea {
    width: 100%;
    max-width: none;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
    margin-bottom: 1rem;
    border-radius: 6px;
  }
  
  /* Button improvements */
  .nav-btn {
    width: 100%;
    max-width: none;
    padding: 12px 16px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
  }
  
  /* Configuration containers */
  .config-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .config-column {
    width: 100%;
  }
  
  /* Time tools improvements */
  .time-input-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .time-input-row input,
  .time-input-row select,
  .time-input-row button {
    width: 100%;
  }
  
  /* URL input groups */
  .url-input-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .url-input-group input {
    width: 100%;
  }
  
  .url-input-group button {
    width: 100%;
  }
  
  /* Performance and SEO sections */
  .performance-section,
  .seo-section {
    padding: 1rem;
  }
  
  .performance-options,
  .seo-help {
    margin: 1rem 0;
  }
  
  /* Results containers */
  .results-container {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  /* Loading indicators */
  .loading-container {
    padding: 2rem 1rem;
  }
  
  /* Dropdown improvements */
  .dropdown-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 300px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Typography improvements */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  
  /* Spacing improvements */
  .form-group {
    margin-bottom: 1rem;
  }
  
  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Table improvements */
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 8px 4px;
  }
  
  /* Code blocks */
  pre, code {
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  
  /* Image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Modal improvements */
  .modal {
    width: 95%;
    margin: 2% auto;
  }
  
  /* Tooltip improvements */
  .tooltip {
    max-width: 250px;
  }
}

/* Tablet responsive design */
@media (min-width: 769px) and (max-width: 1024px) {
  .main {
    padding: 1rem;
  }
  
  .content-view {
    padding: 1.5rem;
  }
  
  .nav-btn {
    min-width: 100px;
    max-width: 150px;
  }
  
  .config-container {
    gap: 1.5rem;
  }
  
  .config-column {
    flex: 1;
  }
}

/* Large screen improvements */
@media (min-width: 1025px) {
  .main {
    max-width: 95vw;
    margin: 0 auto;
  }
  
  .content-view {
    padding: 2rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .nav-btn,
  .mobile-nav-btn,
  button {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve focus states for touch */
  .nav-btn:focus,
  .mobile-nav-btn:focus,
  button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Improve input focus */
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #00ffff;
    --secondary-color: #00cccc;
    --border-color: rgba(0, 255, 255, 0.5);
  }
  
  .nav-btn,
  .mobile-nav-btn {
    border: 2px solid var(--primary-color);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hamburger-btn span {
    transition: none;
  }
  
  .mobile-nav {
    transition: none;
  }
}

