/**
 * Sentinel AI Demo Shortcode Styles
 * Design moderne et épuré pour la démo
 */

.sentinel-ai-demo-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4px;
    border-radius: 20px;
}

.sad-header {
    background: white;
    padding: 40px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.sad-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sad-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

.sad-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 0 0 16px 16px;
}

@media (max-width: 968px) {
    .sad-content {
        grid-template-columns: 1fr;
    }
}

/* Colonne formulaire */
.sad-form-column {
    padding: 40px;
    border-right: 1px solid #ecf0f1;
}

@media (max-width: 968px) {
    .sad-form-column {
        border-right: none;
        border-bottom: 1px solid #ecf0f1;
    }
}

.sad-form-section {
    margin-bottom: 30px;
}

.sad-form-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #2c3e50;
}

.sad-help-text {
    font-size: 13px;
    color: #95a5a6;
    margin: 0 0 20px;
}

/* Filtres */
.sad-filters {
    margin-bottom: 15px;
}

.sad-filter-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
    border: 1px solid #e9ecef;
}

.sad-filter-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sad-filter-label {
    font-size: 14px;
    font-weight: 500;
}

.sad-filter-description {
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
}

.sad-btn-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: #fee;
    color: #e74c3c;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.sad-btn-remove:hover {
    background: #e74c3c;
    color: white;
}

/* Inputs */
.sad-form-group {
    margin-bottom: 20px;
}

.sad-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #34495e;
}

.sad-required {
    color: #e74c3c;
}

.sad-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #f8f9fa;
}

.sad-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sad-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Boutons */
.sad-btn-primary,
.sad-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sad-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sad-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.sad-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sad-btn-secondary {
    background: #f1f3f5;
    color: #495057;
    font-size: 13px;
    padding: 8px 16px;
}

.sad-btn-secondary:hover {
    background: #e9ecef;
}

.sad-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.sad-form.loading .sad-spinner {
    display: inline-block;
}

.sad-form.loading .sad-btn-text {
    opacity: 0.7;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Actions du formulaire */
.sad-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.sad-tries-counter {
    font-size: 13px;
    color: #7f8c8d;
}

#sad-tries-remaining {
    font-weight: 600;
    color: #667eea;
}

/* Colonne résultats */
.sad-results-column {
    padding: 40px;
    background: #f8f9fa;
}

.sad-results {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.sad-results-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #95a5a6;
}

.sad-results-placeholder svg {
    color: #dfe6e9;
    margin-bottom: 20px;
}

.sad-results-placeholder h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #7f8c8d;
}

.sad-results-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Résultats d'analyse */
.sad-analysis-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dfe6e9;
}

.sad-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.sad-score-circle svg {
    width: 100%;
    height: 100%;
}

.sad-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.sad-score-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.sad-score-label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
}

.sad-verdict {
    flex: 1;
}

.sad-verdict-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.sad-verdict-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* Indicateurs */
.sad-indicators {
    margin-bottom: 30px;
}

.sad-indicators h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #2c3e50;
}

.sad-indicators-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sad-indicator-item {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #e74c3c;
    border: 1px solid #fee;
}

/* Table des filtres */
.sad-filters-results {
    margin-bottom: 30px;
}

.sad-filters-results h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #2c3e50;
}

.sad-filters-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dfe6e9;
}

.sad-filters-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
}

.sad-filters-table td {
    padding: 12px;
    font-size: 14px;
    border-top: 1px solid #ecf0f1;
}

.sad-filter-triggered {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.sad-filter-triggered.active {
    background: #27ae60;
}

.sad-filter-triggered.inactive {
    background: #dfe6e9;
}

/* Données brutes */
.sad-raw-data {
    margin-top: 30px;
}

.sad-raw-data details {
    background: white;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    overflow: hidden;
}

.sad-raw-data summary {
    padding: 12px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
}

.sad-raw-data summary:hover {
    background: #ecf0f1;
}

.sad-raw-data pre {
    margin: 0;
    padding: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #495057;
    overflow-x: auto;
    background: #f8f9fa;
}

/* États */
.sad-success {
    color: #27ae60;
}

.sad-warning {
    color: #f39c12;
}

.sad-danger {
    color: #e74c3c;
}

/* Animations */
.sad-fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}