/**
 * Expert Suggestions Modal Styles
 */

/* Modal Overlay */
.expert-suggestions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal Container */
.expert-suggestions-modal {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid #E0E5EB;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading Modal */
.expert-suggestions-modal.loading {
    max-width: 400px;
    text-align: center;
    padding: 40px;
}

.loading-content h3 {
    margin: 20px 0 10px;
    color: #333;
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    font-size: 1.4em;
}

.loading-content p {
    margin: 0;
    color: #666;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 0.95em;
}

/* Confirmation Modal */
.expert-suggestions-modal.confirmation {
    max-width: 500px;
}

.confirmation-content {
    padding: 20px 18px;
}

.confirmation-benefits {
    background: #F8F9FA;
    border: 1px solid #E0E5EB;
    border-radius: 8px;
    padding: 16px;
}

.confirmation-benefits h4 {
    margin: 0 0 12px 0;
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
}

.confirmation-benefits ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.confirmation-benefits li {
    margin-bottom: 8px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #666666;
}

.confirmation-benefits li:last-child {
    margin-bottom: 0;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal Header */
.modal-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #E0E5EB;
    position: relative;
    background: #F8F9FA;
}

.modal-header h2 {
    margin: 0 0 8px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    color: #333333;
}

.modal-header p {
    margin: 0;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 130%;
    color: #666666;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Experts Accordion */
.experts-accordion {
    display: flex;
    flex-direction: column;
}

/* Expert Item */
.expert-item {
    border-bottom: 1px solid #E0E5EB;
}

.expert-item:last-child {
    border-bottom: none;
}

/* Expert Header */
.expert-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.expert-header:hover {
    background: #F8F9FA;
}

/* Expert Avatar */
.expert-avatar {
    flex-shrink: 0;
    margin-right: 15px;
}

.expert-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e1e5e9;
}

/* Expert Info */
.expert-info {
    flex: 1;
    min-width: 0;
}

.expert-name {
    margin: 0 0 2px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 120%;
    color: #000000;
}

.expert-org {
    display: inline-block;
    background: #F2F4F8;
    color: #333333;
    padding: 3px 4px;
    border-radius: 2px;
    border: 1px solid #E0E5EB;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    margin-bottom: 4px;
}

.expert-stats {
    display: flex;
    gap: 8px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    color: #87878C;
}

.content-count {
    font-weight: 400;
}

.max-similarity {
    background: #0C78BE;
    color: #FFFFFF;
    padding: 3px 4px;
    border-radius: 2px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    border: 1px solid #0C78BE;
}

/* Expert Actions */
.expert-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.accordion-toggle {
    background: #F2F4F8;
    border: 1px solid #E0E5EB;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    color: #333333;
}

.accordion-toggle:hover {
    background: #0C78BE;
    border-color: #0C78BE;
    color: #FFFFFF;
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

/* Expert Content */
.expert-content {
    background: #FCFCFC;
    border-top: 1px solid #E0E5EB;
}

.related-content {
    padding: 14px 18px;
}

.related-content h4 {
    margin: 0 0 12px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    color: #333333;
}

/* Content Item */
.content-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid #7b1fa2;
}

.content-item:last-child {
    margin-bottom: 0;
}

.content-item.comment-result {
    border-left-color: #ff9800;
    background-color: #fefefe;
}

.content-item.post-result {
    border-left-color: #7b1fa2;
}

.content-title {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.content-preview {
    font-size: 0.95em;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.post-excerpt {
    background-color: #f3e5f5;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #7b1fa2;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.comment-full-content {
    background-color: #fff8e1;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    margin: 8px 0;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-size: 14px;
    color: #333333;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Parent Post Context */
.parent-post-context {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #333333;
}

.parent-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.parent-label {
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
}

.parent-post-title {
    color: #007cba;
    text-decoration: none;
    font-family: "Mona Sans", sans-serif;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parent-post-title:hover {
    color: #005a87;
    text-decoration: underline;
}

.parent-author {
    color: #6c757d;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
    font-style: italic;
}

.parent-post-full-content {
    color: #495057;
    line-height: 1.4;
    margin-top: 8px;
    padding: 8px 0;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 13px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 8px;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.content-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.8em;
    color: #666;
    flex-wrap: wrap;
}

.content-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.similarity-score {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.view-post {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.view-post:hover {
    text-decoration: underline;
}

.post-type-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.resource-tag {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-tag {
    background: #fff3e0;
    color: #f57c00;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.parent-type-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.post-type-label {
    background: #f8f9fa;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

/* Content Formatting Styles */
.resource-header,
.link-header,
.poll-header {
    margin-bottom: 8px;
}

.resource-label {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}

.link-label {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}

.poll-label {
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}

.resource-name,
.resource-description,
.link-text,
.link-domain,
.poll-question,
.post-main-content,
.media-attachments {
    margin-bottom: 8px;
    line-height: 1.4;
}

.resource-name strong,
.resource-description strong,
.link-text strong,
.link-domain strong,
.poll-question strong,
.post-main-content strong,
.media-attachments strong {
    color: #495057;
    font-weight: 600;
}

.media-attachments {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
    font-size: 0.9em;
    color: #495057;
}

/* Modal Footer */
.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #E0E5EB;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #F8F9FA;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-outline {
    background: #F2F4F8;
    color: #333333;
    border: 1px solid #E0E5EB;
}

.btn-outline:hover {
    background: #0C78BE;
    color: #FFFFFF;
    border-color: #0C78BE;
}

.btn-sm {
    padding: 6px 12px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    border-radius: 4px;
}

/* Custom Scrollbar Styling */
.content-preview::-webkit-scrollbar,
.post-excerpt::-webkit-scrollbar,
.comment-full-content::-webkit-scrollbar,
.parent-post-full-content::-webkit-scrollbar {
    width: 6px;
}

.content-preview::-webkit-scrollbar-track,
.post-excerpt::-webkit-scrollbar-track,
.comment-full-content::-webkit-scrollbar-track,
.parent-post-full-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.content-preview::-webkit-scrollbar-thumb,
.post-excerpt::-webkit-scrollbar-thumb,
.comment-full-content::-webkit-scrollbar-thumb,
.parent-post-full-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.content-preview::-webkit-scrollbar-thumb:hover,
.post-excerpt::-webkit-scrollbar-thumb:hover,
.comment-full-content::-webkit-scrollbar-thumb:hover,
.parent-post-full-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Content Pagination Styles */
.content-slider {
    position: relative;
    min-height: 200px;
}

.content-item-slide {
    display: none;
}

.content-item-slide.active {
    display: block;
}

.content-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.pagination-btn {
    background: #F2F4F8;
    border: 1px solid #E0E5EB;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    cursor: pointer;
    color: #333333;
    text-decoration: none;
    outline: none;
}

.pagination-btn:hover,
.pagination-btn:focus,
.pagination-btn:active,
.pagination-btn:visited {
    background: #F2F4F8;
    border-color: #E0E5EB;
    color: #333333;
    text-decoration: none;
    outline: none;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F2F4F8;
    border-color: #E0E5EB;
    color: #333333;
}

.pagination-info {
    font-family: "Mona Sans", sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 120%;
    color: #87878C;
}

.current-slide {
    font-weight: 600;
    color: #333;
}

/* Clean parent post display */
.parent-post-header {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

.parent-post-header strong {
    color: #333;
    font-weight: 600;
}

/* Content Organization Styles */
.resource-content {
    background: #F6FAFE;
    border: 1px solid #E0E5EB;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #3171A5;
}

/* New Resource Card Styles */
.resource-card {
    background: #F6FAFE;
    border: 1px solid #E0E5EB;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    border-left: 4px solid #3171A5;
}

.resource-name,
.resource-description {
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
}

.resource-name:last-child,
.resource-description:last-child {
    margin-bottom: 0;
}

.resource-name strong,
.resource-description strong {
    color: #3171A5;
    font-family: "Mona Sans", sans-serif;
    font-weight: 700;
}

.link-content {
    background: #FCFCFC;
    border: 1px solid #E0E5EB;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #87878C;
}

.link-text,
.link-url {
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
}

.link-text:last-child,
.link-url:last-child {
    margin-bottom: 0;
}

.link-text strong,
.link-url strong {
    color: #333333;
    font-family: "Mona Sans", sans-serif;
    font-weight: 700;
}

.link-url a {
    color: #0C78BE;
    text-decoration: none;
    word-break: break-all;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 12px;
}

.link-url a:hover {
    text-decoration: underline;
}

/* Resource Card Link Styles */
.resource-link {
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
}

.resource-link:last-child {
    margin-bottom: 0;
}

.resource-link strong {
    color: #3171A5;
    font-family: "Mona Sans", sans-serif;
    font-weight: 700;
}

.resource-link a {
    color: #0C78BE;
    text-decoration: none;
    word-break: break-all;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
}

.resource-link a:hover {
    text-decoration: underline;
}

/* Resource Media Message Styles */
.resource-media-message {
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    font-style: italic;
}

.resource-media-message:last-child {
    margin-bottom: 0;
}

.resource-media-message strong {
    color: #3171A5;
    font-family: "Mona Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* Main Post Content Styles */
.post-main-content {
    margin-bottom: 12px;
    line-height: 1.5;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
}

/* Content Flags Container */
.content-flags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Content Type Tags */
.content-type-tag {
    padding: 3px 4px;
    border-radius: 2px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    text-transform: uppercase;
    letter-spacing: 0%;
}

.comment-tag {
    background: #D3E9FF;
    color: #525252;
    border: 1px solid #A7CAEC;
}

.post-tag {
    background: #F2F4F8;
    color: #333333;
    border: 1px solid #E0E5EB;
}

.parent-post-type-tag,
.post-type-tag {
    background: #F2F4F8;
    color: #666666;
    padding: 3px 4px;
    border-radius: 2px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    border: 1px solid #E0E5EB;
}

.resource-tag {
    background: #F6FAFE;
    color: #3171A5;
    padding: 3px 4px;
    border-radius: 2px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    text-transform: uppercase;
    letter-spacing: 0%;
    border: 1px solid #E0E5EB;
}

/* Similarity Score - match other tag styles */
.similarity-score {
    background: #F8F9FA;
    color: #87878C;
    padding: 3px 4px;
    border-radius: 2px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    border: 1px solid #E0E5EB;
}

/* View Post Button */
.view-post-button {
    background: #0C78BE;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: "Mona Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    text-decoration: none;
    border: 1px solid #E0E5EB;
    transition: all 0.2s ease;
    margin-left: auto;
    /* Push to right */
}

.view-post-button:hover {
    background: #0C78BE;
    color: #FFFFFF;
    text-decoration: none;
    border: 1px solid #E0E5EB;
}

/* Responsive Design */
@media (max-width: 768px) {
    .expert-suggestions-overlay {
        padding: 10px;
    }

    .expert-suggestions-modal {
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .expert-header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .expert-actions {
        width: 100%;
        justify-content: space-between;
    }

    .related-content {
        padding: 15px 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .content-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-btn {
        width: 100%;
        max-width: 150px;
    }
}

/* Expert Tagging Styles */
.tag-expert-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-expert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag-expert-btn.tagged {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.tag-expert-btn.tagged:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

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

/* Tagging Message Styles */
.tagging-message {
    padding: 12px 20px;
    margin: 0;
    border-radius: 4px;
    font-family: "Mona Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: messageSlideDown 0.3s ease-out;
}

.tagging-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tagging-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tagging-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for tag buttons */
.tag-expert-btn.loading {
    position: relative;
    color: transparent !important;
}

.tag-expert-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}