:root {
    --primary-color: #1e73be;
    --secondary-color: #2d2d2d;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #ffffff;
}

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

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1200px;
}

.contact-info {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    padding-left: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    font-size: 14px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    flex: 0 0 auto;
    margin: 0;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: #003366;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(0, 51, 102, 0.1);
}

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

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Tool Section */
.tool-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.diagnostic-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

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

.btn-adviesgesprek {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-adviesgesprek:hover {
    background-color: #1a5f9e;
}

/* Status Bar */
.status-bar {
    display: none; /* Hidden by default */
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px auto;
    max-width: 800px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Results */
.results-container {
    max-width: 800px;
    margin: 20px auto;
}

.results-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

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

.progress-wrapper {
    background: #f0f0f0;
    border-radius: 4px;
    height: 8px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    background: #003366;
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.status-text {
    color: #666;
    margin: 10px 0;
}

.risk-item {
    padding: 12px;
    border-radius: 4px;
    margin: 8px 0;
}

.risk-item.critical { background: #fff2f2; border-left: 4px solid #ff4444; }
.risk-item.high { background: #fff9e6; border-left: 4px solid #ffaa00; }
.risk-item.medium { background: #f2fff2; border-left: 4px solid #00cc00; }

.results-box strong {
    color: var(--primary-color);
}

.results-content {
    word-break: break-word;
    overflow-wrap: break-word;
}

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

.result-section p {
    margin: 10px 0;
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    word-break: break-all;
    overflow-x: auto;
    white-space: pre-wrap;
    max-width: 100%;
}

.result-section p strong {
    display: inline-block;
    margin-bottom: 5px;
}

.dkim-record {
    max-width: 100%;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9em;
    background: var(--light-gray);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.show-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    cursor: pointer;
    margin-left: 5px;
}

.show-more:hover {
    background: var(--secondary-color);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2em;
    }
}

/* Add these styles for rate limit message */
.rate-limit-message {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.rate-limit-message i {
    font-size: 24px;
    color: #ff4444;
}

.rate-limit-message p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.rate-limit-info {
    background: rgba(255, 68, 68, 0.1);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.rate-limit-info p {
    margin: 5px 0;
    color: #666;
}
