/* public/styles.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: small;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Changed to white */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 20px; /* Reduced padding since navbar is no longer fixed */
}

/* Navbar styles */
.navbar {
    position: static; /* Changed from fixed to static */
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #f0f8ff;
}

.nav-link.active {
    background-color: #4682b4;
    color: white;
}

/* Page Content */
.page-content {
    margin-bottom: 30px;
}

/* Header styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    /* margin-bottom: 15px; */
}

.logo img {
    height: 115px;
    margin-right: 10px;
}

.logo h1 {
    color: #4682b4;
    font-size: 24px;
    font-weight: normal;
}

.beta {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.ip-display {
    margin-bottom: 15px;
    font-size: 14px; 
    color: #555;
    background-color: #f0f8ff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #d0e3f7;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
}

#domain-input, #dns-domain-input, #ssl-page-domain-input, #whois-domain-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#check-button, #dns-check-button, #ssl-button, #ssl-page-check-button, #whois-check-button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    background-color: #4682b4;
    color: white;
    border-radius: 0 4px 4px 0;
}

#check-button:hover, #dns-check-button:hover, #ssl-button:hover, #ssl-page-check-button:hover, #whois-check-button:hover {
    background-color: #3a6d99;
}

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

.social a {
    color: #4682b4;
    text-decoration: none;
}

.social a:hover {
    text-decoration: underline;
}

/* Description styles */
.description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 10px;
}

/* Loading indicator */
#loading {
    text-align: center;
    margin: 30px 0;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4682b4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Results styles - Updated for compact two-column layout */
#results-container, #ssl-results-container {
/*     background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    margin-bottom: 30px;
}

#domain-title, #ssl-domain-title {
    font-size: 20px;
    color: #4682b4;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category {
    margin-bottom: 20px;
}

.category-header {
    background-color: #f0f8ff;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-left: 4px solid #4682b4;
    font-weight: bold;
}

/* New compact test-item layout */
.test-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.test-left {
    flex: 0 0 300px;
    padding-right: 15px;
    display: flex;
    align-items: flex-start;
}

.test-right {
    flex: 1;
    min-width: 250px;
}

.status-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.status-ok {
    background-color: #4caf50;
}

.status-warning {
    background-color: #ff9800;
}

.status-error {
    background-color: #f44336;
}

.status-info {
    background-color: #2196f3;
}

.test-name {
    font-weight: bold;
    margin-top: 3px;
}

.test-info {
    margin-bottom: 5px;
}

.test-details {
    margin-bottom: 5px;
    font-family: monospace;
    background-color: #f9f9f9;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.test-description {
    color: #666;
    font-size: 10px;
    font-style: italic;
}

.process-time {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* SSL Styles */
#ssl-results-container {
    margin-top: 30px;
}

/* New compact SSL results */
.ssl-test-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ssl-test-left {
    flex: 0 0 300px;
    padding-right: 15px;
    display: flex;
    align-items: flex-start;
}

.ssl-test-right {
    flex: 1;
    min-width: 250px;
}

/* Certificate Details Boxes */
.cert-details {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cert-box-title {
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: #fff;
    padding: 0 10px;
    font-weight: bold;
}

.cert-box-content {
    margin-top: 10px;
}

.cert-item {
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
}

.cert-label {
    font-weight: bold;
    color: #555;
    flex: 0 0 150px;
}

.cert-value {
    flex: 1;
}

.cert-chain-arrow {
    width: 100%;
    text-align: center;
    margin: 5px 0;
    color: #4682b4;
    font-size: 24px;
}

.remind-button {
    background-color: #4682b4;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.remind-button:hover {
    background-color: #3a6d99;
}

/* Footer styles */
footer {
    background-color: #f5f5f5;
    padding: 20px;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin: 10px 0;

}

.footer-links a {
    color: #4682b4;
    text-decoration: none;
    padding: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.disclaimer {
    /* margin-top: 15px; */
    font-size: 8px;
    color: #777;
    /* text-align: justify; */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CNAME Chain Styling */
.cname-chain {
    padding: 8px 10px;
    border-radius: 4px;
    font-family: monospace;
    background-color: #f9f9f9;
    font-size: 13px;
}

.cname-chain div {
    padding: 2px 0;
}

.cname-note {
    color: #E67E22;
    font-style: italic;
    margin-top: 5px;
    font-size: 13px;
}

.test-info {
    margin-bottom: 5px;
}

/* Info icon for WWW records */
.status-info {
    background-color: #2196f3;
}
/* WWW Records styling to match screenshot */
.www-records-container {
    margin-bottom: 20px;
}

.www-record-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.www-record-icon {
    width: 40px;
    flex-shrink: 0;
    padding-top: 5px;
}

.www-record-name {
    width: 150px;
    flex-shrink: 0;
    font-weight: bold;
    padding-top: 5px;
}

.www-record-details {
    flex: 1;
}

.test-info {
    margin-bottom: 8px;
}

.cname-chain {
    font-family: monospace;
    background-color: #f9f9f9;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.cname-chain div {
    padding: 2px 0;
}

.cname-note {
    color: #e67e22;
    font-style: italic;
    margin-bottom: 8px;
    font-size: 13px;
}

.status-info {
    background-color: #2196f3;
}

/* Override category-header for WWW */
.category-header {
    background-color: #f0f8ff;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-left: 4px solid #4682b4;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        padding-top: 80px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        padding: 8px 10px;
        margin: 0 2px;
        font-size: 14px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    #domain-input, #dns-domain-input, #ssl-page-domain-input, #whois-domain-input,
    #check-button, #dns-check-button, #ssl-button, #ssl-page-check-button, #whois-check-button {
        font-size: 14px;
        border-radius: 4px;
        margin-bottom: 5px;
    }
    
    #domain-input, #dns-domain-input, #ssl-page-domain-input, #whois-domain-input {
        width: 100%;
    }
    
    .test-left, .ssl-test-left {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }
    
    .test-right, .ssl-test-right {
        flex: 0 0 100%;
    }
    
    .cert-item {
        flex-direction: column;
    }
    
    .cert-label {
        flex: 0 0 100%;
    }
    
    .disclaimer {
        font-size: 10px;
    }
    /* Smaller fonts for results sections */
#results-container, #ssl-results-container {
    font-size: 14px; /* Reduced from default */
}

#domain-title, #ssl-domain-title {
    font-size: 18px; /* Reduced from 20px */
}

.category-header {
    font-size: 15px; /* Slightly smaller header */
    padding: 6px 8px; /* Reduced padding */
    margin-bottom: 8px;
}

/* More compact test items */
.test-item, .ssl-test-item {
    margin-bottom: 6px; /* Reduced from 8px */
    padding-bottom: 6px; /* Reduced from 8px */
}

.test-left, .ssl-test-left {
    flex: 0 0 280px; /* Slightly narrower */
    padding-right: 10px; /* Reduced padding */
}

.status-icon {
    width: 20px; /* Smaller from 24px */
    height: 20px; /* Smaller from 24px */
    font-size: 12px; /* Smaller font */
}

.test-name {
    font-size: 13px; /* Smaller font */
}

.test-info {
    font-size: 13px; /* Smaller font */
    margin-bottom: 3px; /* Reduced margin */
}

.test-details {
    font-size: 12px; /* Smaller font */
    padding: 4px 8px; /* Reduced padding */
    margin-bottom: 3px; /* Reduced margin */
}

.test-description {
    font-size: 10px; /* Smaller font */
}

/* Certificate details more compact */
.cert-box {
    padding: 15px; /* Reduced from 20px */
}

.cert-item {
    margin-bottom: 3px; /* Reduced from 5px */
    font-size: 13px; /* Smaller font */
}

.cert-label {
    flex: 0 0 140px; /* Slightly narrower */
}

/* WWW Records more compact */
.www-record-row {
    padding-bottom: 10px; /* Reduced from 15px */
    margin-bottom: 10px; /* Reduced from 15px */
}

.www-record-name {
    width: 140px; /* Slightly narrower */
    font-size: 13px; /* Smaller font */
}

.cname-chain {
    font-size: 12px; /* Smaller font */
    padding: 6px 10px; /* Reduced padding */
}

.cname-note {
    font-size: 11px; /* Smaller font */
}

/* Process time more compact */
.process-time {
    font-size: 11px; /* Smaller from 12px */
    margin-top: 15px; /* Reduced margin */
}
}

/* Modern DNS Results Redesign */
.dns-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 32px;
  padding: 24px 32px;
}
.dns-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 10px;
}
.dns-section-icon img {
  width: 28px;
  height: 28px;
  margin-right: 14px;
}
.dns-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1976d2;
  margin-right: 18px;
}
.dns-section-desc {
  font-size: 1rem;
  color: #666;
  margin-left: auto;
}
.dns-record-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.dns-record-table th, .dns-record-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 1rem;
}
.dns-record-table th {
  background: #f5f7fa;
  color: #1976d2;
  font-weight: 600;
  border-bottom: 1.5px solid #e3e8ee;
}
.dns-record-table tr:nth-child(even) {
  background: #f8fafc;
}
.dns-record-table tr:nth-child(odd) {
  background: #fff;
}

/* WHOIS Results Modern Cozy Styles */
.whois-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 18px;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 10px;
}
.whois-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 32px;
  padding: 24px 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.whois-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
}
.whois-row:last-child {
  border-bottom: none;
}
.whois-label {
  font-weight: 500;
  color: #333;
  min-width: 120px;
  margin-right: 10px;
}
.whois-value {
  color: #1976d2;
  font-size: 1rem;
  word-break: break-all;
}
#whois-results-container {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 30px;
}
