/* Minimal CSS - inherits most styling from your WordPress theme */

#spf-checker-container {
    margin: 20px 0;
}

.spf-input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.spf-input-group input {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    font-size: inherit;
}

#spf-check-btn {
    padding: 10px 25px;
    cursor: pointer;
    white-space: nowrap;
}

#spf-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spf-error {
    margin: 15px 0;
    padding: 12px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.spf-loading {
    text-align: center;
    padding: 30px;
}

.spf-spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid currentColor;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spf-spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Terminal-style output for SPF results */
.spf-output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 20px 0;
}

.spf-line {
    margin: 2px 0;
    white-space: pre-wrap;
}

/* Color coding for terminal output */
.spf-output .domain {
    color: #4ec9b0;
    font-weight: bold;
}

.spf-output .spf-record {
    color: #9cdcfe;
}

.spf-output .error {
    color: #f48771;
}

.spf-output .warning {
    color: #dcdcaa;
}

.spf-output .success {
    color: #4ec9b0;
}

.spf-output .info {
    color: #569cd6;
}

.spf-output .critical {
    color: #f48771;
    font-weight: bold;
}

.spf-output .macro {
    color: #9cdcfe;
    font-style: italic;
}

/* Summary statistics */
.spf-stats ul {
    list-style: none;
    padding-left: 0;
}

.spf-stats li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.spf-stats li.total {
    font-weight: bold;
    border-bottom: 2px solid currentColor;
    margin-top: 10px;
    padding-top: 15px;
}

/* Compliance status alerts */
.compliance-status {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.status-critical {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.status-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.status-caution {
    background: #fff3cd;
    border-left-color: #ff9800;
    color: #856404;
}

.status-pass {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.compliance-status p {
    margin: 8px 0 0 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .spf-input-group {
        flex-direction: column;
    }
    
    .spf-input-group input {
        width: 100%;
        min-width: 0;
    }
    
    #spf-check-btn {
        width: 100%;
    }
}
