#hscv-search-container {
    max-width: 700px;
    margin: 30px auto;
    direction: rtl;
    text-align: right;
}

.hscv-search-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hscv-search-box h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #ffffff;
}

.subtitle {
    margin: 0 0 20px;
    opacity: 0.9;
    font-size: 14px;
}

.search-wrapper {
    display: flex;
    gap: 10px;
}

#hscv-search-input {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    direction: rtl;
    text-align: right;
    background-color: #ffffff; 
    color: #333333 !important; 
}

#hscv-search-input::placeholder {
    color: #999999;
}

.search-btn {
    padding: 14px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
    background: #2563eb;
}

.hints {
    margin-top: 15px;
    font-size: 13.5px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    line-height: 1.8;
}

.hint-item {
    margin-bottom: 8px;
}

.hint-item:last-child {
    margin-bottom: 0;
}

.results-box {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.loading {
    text-align: center;
    padding: 30px;
    font-size: 15px;
    color: #3b82f6;
    font-weight: bold;
}

.ai-pulse {
    animation: pulse-animation 1.5s infinite;
    color: #8b5cf6;
}

@keyframes pulse-animation {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ======== استایل تگ‌های هوش مصنوعی ======== */
#hscv-ai-tags-area {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.ai-tags-header {
    font-size: 14px;
    color: #334155;
    margin-bottom: 10px;
}

.ai-tags-header span {
    font-size: 12px;
    color: #64748b;
    font-weight: normal;
}

.ai-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ai-tag {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #c7d2fe;
}

.ai-warning-msg {
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    padding: 10px;
    border-radius: 6px;
    border-right: 4px solid #f59e0b;
    line-height: 1.6;
}
/* ======================================= */

.result-item {
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: #ffffff;
}

.result-item:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-code {
    font-weight: bold;
    color: #1e293b;
    font-size: 18px;
    margin-top: 5px;
}

.result-similarity {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.result-content {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}

.result-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.3s;
    display: inline-block;
}

.result-link:hover {
    background: #dbeafe;
    text-decoration: none;
}

.load-more-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.error-msg {
    padding: 15px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

@media (max-width: 600px) {
    .hscv-search-box {
        padding: 20px;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}