.content-analysis-wrapper {
    padding: 16px 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;  /* Prevent shrinking */
    min-height: 10px; /* Prevent shrinking */
    border-radius: 50%;
    background-color: #e9ecef;
    margin-right: 5px;
    position: relative;
    display: inline-block; /* Ensure consistent block formatting */
    flex-shrink: 0;  /* Prevent flexbox shrinking */
}

.status-dot.success {
    background-color: #28a745;
}

.status-dot.warning {
    background-color: #ffc107;
}

.status-dot.error {
    background-color: #dc3545;
}

.analysis-section {
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 12px;
    font-size: 16px;
}

/* SERP Preview Styles */
.serp-preview {
    font-family: arial, sans-serif;
    max-width: 600px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
}

.serp-title {
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 3px;
    cursor: text;
    outline: none;
}

.serp-title:hover {
    text-decoration: underline;
}

.serp-url-wrapper {
    color: #006621;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 3px;
}

.serp-url-prefix {
    color: #006621;
}

.serp-url-slug {
    color: #006621;
    cursor: text;
    outline: none;
}

.serp-description {
    color: #545454;
    font-size: 13px;
    line-height: 1.4;
    cursor: text;
    outline: none;
}

[contenteditable].empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

[contenteditable]:focus {
    outline: none;
    border-bottom: 2px solid #007bff;
    margin-bottom: -2px;
}

[contenteditable].is-invalid {
    border-bottom: 2px solid #dc3545;
    margin-bottom: -2px;
}

/* Form Styling */
.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

textarea.form-control {
    min-height: 100px;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 80%;
    margin-top: 0.25rem;
}

.form-control.is-invalid,
[contenteditable].is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.serp-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.serp-wrapper small {
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

/* AI Suggestions Styles */
.ai-suggestions {
    padding: 16px 0;
}

.ai-suggestions .alert {
    border-radius: 8px;
    border: none;
}

.ai-suggestions .alert-success {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.suggestions-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    line-height: 1.6;
    font-size: 15px;
}

.suggestions-content h1,
.suggestions-content h2,
.suggestions-content h3,
.suggestions-content h4,
.suggestions-content h5,
.suggestions-content h6 {
    color: #495057;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.suggestions-content p {
    margin-bottom: 12px;
}

.suggestions-content ul,
.suggestions-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.suggestions-content li {
    margin-bottom: 8px;
}

.metadata {
    background: #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.metadata p {
    margin-bottom: 8px;
}

.metadata strong {
    color: #495057;
}

/* Modal customization */
#aiSuggestionsModal .modal-dialog {
    max-width: 800px;
}

#aiSuggestionsModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Loading state */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .suggestions-content {
        padding: 16px;
        font-size: 14px;
    }
    
    #aiSuggestionsModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}
