/* CICOR AI Bot Scanner Frontend Styles */

.abs-scanner-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e4e7;
}

.abs-form-group {
    margin-bottom: 20px;
}

.abs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.abs-form-group input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.abs-form-group input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.abs-scan-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.abs-scan-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,152,219,0.3);
}

.abs-scan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.abs-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: abs-spin 1s linear infinite;
}

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

.abs-results {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.abs-results h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.abs-score-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.abs-score-badge.excellent {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.abs-score-badge.good {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.abs-score-badge.poor {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.abs-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.abs-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abs-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.abs-status.found,
.abs-status.good {
    background: #d4edda;
    color: #155724;
}

.abs-status.not-found,
.abs-status.poor {
    background: #f8d7da;
    color: #721c24;
}

.abs-status.medium {
    background: #fff3cd;
    color: #856404;
}

.abs-recommendations {
    margin-top: 20px;
}

.abs-recommendation {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.abs-recommendation.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.abs-recommendation.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.abs-recommendation.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.abs-recommendation strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.abs-content-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.abs-content-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.abs-llms-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: monospace;
    font-size: 13px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin: 10px 0;
}

.abs-error {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

/* Icon styles */
.abs-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.abs-icon-check::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
}

.abs-icon-x::before {
    content: "✗";
    color: #dc3545;
    font-weight: bold;
}

.abs-icon-info::before {
    content: "ℹ";
    color: #17a2b8;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .abs-scanner-form {
        margin: 10px;
        padding: 20px;
    }
    
    .abs-form-group input[type="url"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .abs-scan-btn {
        width: 100%;
        padding: 16px;
    }
}