/* ===========================
   Board Editor Styles
   =========================== */

/* Floating Format Toolbar */
.format-toolbar {
    position: fixed !important;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px;
    display: none;
    z-index: 999999 !important;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeInScale 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.format-toolbar.show {
    display: flex !important;
    gap: 2px;
    align-items: center;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(2px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.format-btn {
    position: relative;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 36px;
    overflow: hidden;
}

.format-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.format-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.format-btn:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.format-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.06);
}

/* Button text styling */
.format-btn .btn-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-left: 2px;
    opacity: 0.9;
}

/* Heading buttons special style */
.format-btn.heading-btn {
    position: relative;
    overflow: visible;
}

/* H1 Button - Largest */
.format-btn[data-format="h1"] {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    min-width: 45px;
}

.format-btn[data-format="h1"]:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.format-btn[data-format="h1"] .btn-text {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.format-btn[data-format="h1"]:hover .btn-text {
    background: linear-gradient(135deg, #7c8fff, #8e5db3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* H2 Button - Medium */
.format-btn[data-format="h2"] {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    min-width: 45px;
}

.format-btn[data-format="h2"]:hover {
    background: rgba(102, 126, 234, 0.12);
    color: #fff;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
}

.format-btn[data-format="h2"] .btn-text {
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* H3 Button - Small */
.format-btn[data-format="h3"] {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    min-width: 45px;
}

.format-btn[data-format="h3"]:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #fff;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

.format-btn[data-format="h3"] .btn-text {
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #a5b4fc, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Paragraph Button */
.format-btn.paragraph-btn,
.format-btn[data-format="p"] {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
}

.format-btn.paragraph-btn:hover,
.format-btn[data-format="p"]:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.1);
}

.format-btn[data-format="p"] .btn-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.format-btn[data-format="p"]:hover .btn-text {
    color: #667eea;
}

/* Style buttons (Bold, Italic) */
.format-btn.style-btn {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    min-width: 36px;
    padding: 10px;
}

.format-btn.style-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.format-btn.style-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.format-btn.style-btn:hover svg {
    opacity: 1;
}

/* Link button special style */
.format-btn.link-btn {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    position: relative;
    overflow: visible;
    min-width: 60px;
}

.format-btn.link-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #fff;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.format-btn.link-btn .btn-text {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.format-btn.link-btn:hover .btn-text {
    background: linear-gradient(135deg, #86efac, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.format-btn.link-btn svg {
    width: 14px;
    height: 14px;
    stroke: #4ade80;
    opacity: 0.8;
}

.format-btn.link-btn:hover svg {
    stroke: #86efac;
    opacity: 1;
}

/* Code formatting buttons in floating toolbar */
.format-btn.code-btn {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    min-width: 35px;
    padding: 10px 8px;
    font-family: 'JetBrains Mono', monospace;
}

.format-btn.code-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.format-btn[data-format="code-html"]:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.format-btn[data-format="code-css"]:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.format-btn[data-format="code-js"]:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.format-btn[data-format="code-python"]:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

/* Alignment buttons in floating toolbar */
.format-btn.align-btn {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    min-width: 30px;
    padding: 10px 6px;
}

.format-btn.align-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.format-btn[data-format="align-left"]:hover,
.format-btn[data-format="align-center"]:hover,
.format-btn[data-format="align-right"]:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.format-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.format-btn:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.format-separator {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent);
    margin: 0 4px;
}

/* URL Input Overlay */
.url-input-overlay {
    position: fixed !important;
    background: linear-gradient(145deg, #2a2d3a, #1e2129);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    padding: 14px;
    display: none;
    z-index: 999999 !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInScale 0.2s ease;
    backdrop-filter: blur(10px);
}

.url-input-overlay.show {
    display: block !important;
}

.url-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.url-input-field {
    width: 280px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.url-input-field:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.url-input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.url-confirm-btn,
.url-cancel-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.url-confirm-btn {
    background: linear-gradient(145deg, #667eea, #5a72d8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.url-confirm-btn:hover {
    background: linear-gradient(145deg, #7c8fff, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.url-cancel-btn {
    background: linear-gradient(145deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.1));
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.url-cancel-btn:hover {
    background: linear-gradient(145deg, rgba(255, 71, 87, 0.3), rgba(255, 71, 87, 0.2));
    border-color: rgba(255, 71, 87, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

/* Link Preview Styles */
.link-preview {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    background: rgba(255,255,255,0.05);
    display: block;
    cursor: pointer;
}

.link-preview-content {
    display: flex;
    gap: 15px;
    pointer-events: none;
}

.preview-image {
    flex-shrink: 0;
}

.preview-image img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-content {
    flex: 1;
}

.preview-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.preview-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-site {
    color: rgba(255,255,255,0.5);
    font-size: 0.85em;
}

.preview-site img {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

/* Content Heading Style */
.content-heading {
    margin: 25px 0 15px;
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Image Layout Styles */
.image-clear {
    clear: both;
    width: 100%;
    margin-top: 5px;
}

.single-image-figure {
    margin: 10px 0;
    text-align: center;
}

.single-image-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Inline Image Style */
.inline-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 5px 0;
}

/* Link Style */
.content-link {
    color: #667eea;
    text-decoration: underline;
}

/* Empty State Styles */
.empty-message {
    color: #999;
    text-align: center;
}

.error-message {
    color: #ff4757;
    text-align: center;
}

.accent-message {
    color: var(--accent-purple);
}

/* Accordion Alt Text Editor */
.accordion-alt-editor {
    margin: 10px 0;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 60px;
        transform: translateY(0);
    }
}

.accordion-alt-content {
    display: flex;
    gap: 8px;
    align-items: center;
}

.accordion-alt-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.accordion-alt-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.accordion-alt-buttons {
    display: flex;
    gap: 4px;
}

.accordion-alt-btn-confirm,
.accordion-alt-btn-cancel {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.accordion-alt-btn-confirm {
    background: #667eea;
    color: #fff;
}

.accordion-alt-btn-confirm:hover {
    background: #5a72d8;
}

.accordion-alt-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
}

.accordion-alt-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.img-editing-alt {
    outline: 2px solid #667eea !important;
    outline-offset: 2px;
}

/* Inline Alt Editor (Overlay) */
.inline-alt-editor {
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inline-alt-content {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-alt-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.inline-alt-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.inline-alt-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.inline-alt-buttons {
    display: flex;
    gap: 4px;
}

.inline-alt-btn-confirm,
.inline-alt-btn-cancel {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.inline-alt-btn-confirm {
    background: #667eea;
    color: #fff;
}

.inline-alt-btn-confirm:hover {
    background: #5a72d8;
    transform: scale(1.05);
}

.inline-alt-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
}

.inline-alt-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.05);
}

img.editing-alt {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Alt Text Modal */
.alt-text-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.alt-text-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alt-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.alt-modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.alt-modal-title {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 600;
}

.alt-inputs-container {
    margin: 20px 0;
}

.alt-input-group {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.alt-input-group label {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.alt-input-group input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.alt-input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.alt-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.alt-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.alt-modal-confirm {
    background: #667eea;
    color: #fff;
}

.alt-modal-confirm:hover {
    background: #5a72d8;
    transform: translateY(-2px);
}

.alt-modal-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
}

.alt-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Alt text modal image styles */
.alt-image-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.alt-image-preview {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.alt-input-field {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.alt-input-field:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

/* Contact and Private Post Badges */
.contact-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.private-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-purple, #667eea);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Restricted Content Styles */
.restricted-content {
    position: relative;
    padding: 20px;
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid rgba(102, 126, 234, 0.6);
    border-radius: 8px;
}

.restricted-message {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    text-align: center;
    padding: 10px 0;
    font-weight: 500;
}

.post-content.restricted-content {
    cursor: not-allowed;
    user-select: none;
}

/* Hide like button for restricted content in post actions */
.post-actions:empty {
    display: none;
}

/* Brighter style for restricted post titles */
.post-title {
    color: rgba(255, 255, 255, 0.9);
}

/* Make lock icon in title more visible */
.board-post .post-title {
    filter: brightness(1.2);
}

/* ===========================
   Internal Link Search Modal
   =========================== */
.internal-link-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.internal-link-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.internal-link-content {
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.internal-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.internal-link-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
}

.internal-link-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.internal-link-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.internal-link-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.internal-link-search {
    position: relative;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.internal-link-search input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.internal-link-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
}

.internal-link-search svg {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    stroke: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.internal-link-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.internal-link-results::-webkit-scrollbar {
    width: 8px;
}

.internal-link-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.internal-link-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.internal-link-item {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.internal-link-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.internal-link-item-title {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.internal-link-item-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.internal-link-loading {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.internal-link-empty {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.internal-link-empty svg {
    width: 48px;
    height: 48px;
    stroke: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}
