/* WP 301 AI Redirection Planner - Public Styles */

.wp301ai-redirection-tool {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wp301ai-form-section {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.wp301ai-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.wp301ai-form-group {
    margin-bottom: 15px;
}

.wp301ai-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.wp301ai-form-group input[type="text"],
.wp301ai-form-group input[type="url"],
.wp301ai-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.wp301ai-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.wp301ai-file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
}

.wp301ai-file-upload input[type="file"] {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.wp301ai-button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.wp301ai-button:hover {
    background: #005a87;
}

.wp301ai-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wp301ai-button.secondary {
    background: #555;
}

.wp301ai-button.secondary:hover {
    background: #333;
}

.wp301ai-results {
    margin-top: 30px;
}

.wp301ai-results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wp301ai-results-table th,
.wp301ai-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.wp301ai-results-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.wp301ai-results-table tr:hover {
    background: #f9f9f9;
}

.wp301ai-match-score {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.wp301ai-match-score.high {
    background: #d4edda;
    color: #155724;
}

.wp301ai-match-score.medium {
    background: #fff3cd;
    color: #856404;
}

.wp301ai-match-score.low {
    background: #f8d7da;
    color: #721c24;
}

.wp301ai-loading {
    text-align: center;
    padding: 40px;
}

.wp301ai-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: wp301ai-spin 1s linear infinite;
}

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

.wp301ai-message {
    padding: 12px;
    margin: 10px 0;
    border-radius: 3px;
    border: 1px solid;
}

.wp301ai-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.wp301ai-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.wp301ai-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.wp301ai-message.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* Responsive design */
@media (max-width: 768px) {
    .wp301ai-redirection-tool {
        padding: 10px;
    }
    
    .wp301ai-results-table {
        font-size: 14px;
    }
    
    .wp301ai-results-table th,
    .wp301ai-results-table td {
        padding: 8px;
    }
}