/* AntiSpywares DKIM Checker Styles */

.antispywares-dkim-checker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header */
.dkim-checker-header {
    text-align: center;
    margin-bottom: 30px;
}

.dkim-checker-title {
    color: #233D78;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dkim-checker-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Form */
.dkim-checker-form-wrapper {
    background: #f8f9fc;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #e8ecf3;
}

.dkim-checker-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dkim-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dkim-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #233D78;
    font-weight: 600;
    font-size: 14px;
}

.dkim-icon {
    width: 18px;
    height: 18px;
    color: #5B98BA;
}

.dkim-input {
    padding: 14px 16px;
    border: 2px solid #d1d9e6;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.dkim-input:focus {
    outline: none;
    border-color: #5B98BA;
    box-shadow: 0 0 0 3px rgba(91, 152, 186, 0.1);
}

.dkim-input::placeholder {
    color: #a0aec0;
}

.dkim-input-help {
    color: #718096;
    font-size: 13px;
    margin-top: 4px;
}

/* Checkbox */
.dkim-checkbox-group {
    margin-top: 10px;
}

.dkim-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.dkim-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #5B98BA;
}

.dkim-checkbox-label {
    color: #233D78;
    font-size: 14px;
    font-weight: 500;
}

/* Button */
.dkim-button {
    background: #233D78;
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.dkim-button:hover {
    background: #1a2d5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 61, 120, 0.3);
}

.dkim-button:active {
    transform: translateY(0);
}

.dkim-button-icon {
    width: 20px;
    height: 20px;
}

/* Loading */
.dkim-loading {
    text-align: center;
    padding: 40px;
}

.dkim-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8ecf3;
    border-top-color: #5B98BA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dkim-loading-text {
    color: #233D78;
    font-size: 16px;
    font-weight: 500;
}

/* Error */
.dkim-error {
    background: #fff5f5;
    border: 2px solid #FF6B6B;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.dkim-error-icon {
    width: 32px;
    height: 32px;
    color: #FF6B6B;
    flex-shrink: 0;
}

.dkim-error-text {
    color: #c53030;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* Results */
.dkim-results {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e8ecf3;
    overflow: hidden;
}

.dkim-results-header {
    background: #233D78;
    color: #ffffff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dkim-results-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.dkim-close-results {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.dkim-close-results:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dkim-close-results svg {
    width: 24px;
    height: 24px;
}

.dkim-results-content {
    padding: 30px;
}

/* Result Cards */
.dkim-result-card {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #5B98BA;
}

.dkim-result-card:last-child {
    margin-bottom: 0;
}

.dkim-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dkim-selector-badge {
    background: #233D78;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.dkim-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.dkim-status-valid {
    background: #c6f6d5;
    color: #22543d;
}

.dkim-status-invalid {
    background: #fed7d7;
    color: #742a2a;
}

/* Score */
.dkim-score-container {
    margin-bottom: 20px;
}

.dkim-score-label {
    color: #233D78;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dkim-score-bar {
    height: 12px;
    background: #e8ecf3;
    border-radius: 6px;
    overflow: hidden;
}

.dkim-score-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.dkim-score-high {
    background: #48bb78;
}

.dkim-score-medium {
    background: #ed8936;
}

.dkim-score-low {
    background: #f56565;
}

/* Details */
.dkim-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dkim-detail-item {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e8ecf3;
}

.dkim-detail-label {
    color: #718096;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.dkim-detail-value {
    color: #233D78;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

/* Issues & Warnings */
.dkim-section {
    margin-bottom: 20px;
}

.dkim-section-title {
    color: #233D78;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dkim-section-title svg {
    width: 20px;
    height: 20px;
}

.dkim-issues-list,
.dkim-warnings-list,
.dkim-recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dkim-issues-list li,
.dkim-warnings-list li,
.dkim-recommendations-list li {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.dkim-issues-list li {
    background: #fff5f5;
    border-left: 3px solid #FF6B6B;
    color: #c53030;
}

.dkim-warnings-list li {
    background: #fffff0;
    border-left: 3px solid #ed8936;
    color: #9c4221;
}

.dkim-recommendations-list li {
    background: #f0fff4;
    border-left: 3px solid #48bb78;
    color: #22543d;
}

/* Record Display */
.dkim-record-display {
    background: #1a202c;
    color: #48bb78;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .antispywares-dkim-checker {
        padding: 15px;
    }
    
    .dkim-checker-title {
        font-size: 24px;
    }
    
    .dkim-checker-form-wrapper {
        padding: 20px;
    }
    
    .dkim-results-header {
        padding: 15px 20px;
    }
    
    .dkim-results-content {
        padding: 20px;
    }
    
    .dkim-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dkim-details-grid {
        grid-template-columns: 1fr;
    }
}