/* Styles for the Special Focus / Child Rights Dashboard */

.special-focus-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.special-focus-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.special-focus-header h1 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

/* Use scenario generator styles for client info - remove conflicting styles */

.controls-area {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.region-control {
    margin-bottom: 20px;
}

.region-control label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.region-control select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.region-control select:disabled {
    background-color: #f5f5f5;
    color: #666;
}

.region-control small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

#generate-dashboard-btn {
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
}

.dashboard-content {
    margin-top: 30px;
}

.scan-hits-summary {
    margin-bottom: 25px;
}

.scan-hits-summary h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#selected-region-display {
    color: #007bff;
    font-weight: bold;
}

.synthesis-section {
    margin-bottom: 30px;
}

.synthesis-section h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#synthesis-findings {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background-color: #fafafa;
}

.analysis-grid {
    margin-bottom: 30px;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analysis-table th,
.analysis-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.analysis-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
}

.analysis-table th:first-child {
    background-color: #e9ecef;
    text-align: left;
}

.row-label {
    font-weight: bold;
    background-color: #f8f9fa;
    width: 150px;
    min-width: 150px;
}

.analysis-cell {
    min-height: 80px;
    min-width: 200px;
    max-width: 300px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.analysis-cell:empty::before {
    content: "Content will appear here after generation...";
    color: #999;
    font-style: italic;
}

.disclaimer {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    text-align: center;
}

.disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

/* Error state styling */
.error-state {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    color: #721c24;
}

.error-state h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.error-state p {
    margin: 0;
    font-size: 0.9rem;
}

.retry-button {
    margin-top: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.retry-button:hover {
    background-color: #0056b3;
}

.retry-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Generate button states */
#generate-dashboard-btn.loading {
    background-color: #6c757d;
    cursor: not-allowed;
}

#generate-dashboard-btn.error {
    background-color: #dc3545;
}

#generate-dashboard-btn.error:hover {
    background-color: #c82333;
}

/* Responsive design */
@media (max-width: 768px) {
    .special-focus-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .client-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .analysis-table {
        font-size: 12px;
    }
    
    .analysis-cell {
        min-width: 150px;
        max-width: 200px;
    }
    
    .row-label {
        width: 120px;
        min-width: 120px;
    }
} 