.hadith-search-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    height: 50px;
}

.search-box input:focus {
    border-color: #374868;
    box-shadow: 0 0 0 0.2rem rgba(74, 108, 247, 0.25);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 40px;
    width: 40px;
    background: #374868;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hadith-stats {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-box i {
    font-size: 2.5rem;
    color: #374868;
}

.stat-box h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
}

.stat-box p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.info-text i {
    color: #374868;
}

/* جدول الروايات */
.hadith-table-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.hadith-table-card table {
    margin-bottom: 0;
}

.hadith-table-card thead th {
    background: #f8f9fa;
    border-top: 0;
    padding: 15px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.hadith-table-card tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #eee;
}

.hadith-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.hadith-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.hadith-link:hover {
    color: #374868;
}

.hadith-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hadith-meta .badge {
    font-size: 11px;
    padding: 4px 10px;
}

.isnad-count {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #e9ecef;
    color: #495057;
    border-radius: 50%;
    font-weight: 600;
}

/* صفحة التفاصيل */
.hadith-details-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.hadith-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

.hadith-title {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
}

.category-badge {
    background: #374868;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.hadith-text-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.hadith-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
    margin-bottom: 20px;
}

.hadith-notes {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.hadith-notes h5 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.hadith-notes p {
    margin: 0;
    color: #495057;
    font-size: 15px;
}

.original-hadith-info {
    margin-top: 20px;
}

/* المسانيد */
.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.section-title .badge {
    margin-right: 10px;
    font-size: 14px;
}

.isnads-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 6px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    background: #374868;
    color: white;
    box-shadow: none;
}

.accordion-body {
    padding: 20px;
}

/* سلسلة السند */
.isnad-chain {
    padding: 10px 0;
}

.chain-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #dee2e6;
}

.chain-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.narrator-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.narrator-name {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
}

.narrator-name:hover {
    color: #374868;
}

.narrator-layer {
    background: #e9ecef;
    color: #6c757d;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.transmission-form {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374868;
    font-weight: 500;
    font-size: 14px;
}

.transmission-form i {
    font-size: 12px;
}

.isnad-meta {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.isnad-meta p {
    margin: 0;
    color: #495057;
    font-size: 14px;
}

/* الروايات المشابهة */
.similar-hadiths-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.similar-hadith-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    height: 100%;
    transition: all 0.3s;
}

.similar-hadith-card:hover {
    border-color: #374868;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.similar-text {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 70px;
}

.similar-actions {
    display: flex;
    gap: 10px;
}

/* التجاوب */
@media (max-width: 768px) {
    .hadith-search-card,
    .hadith-details-card,
    .isnads-section,
    .similar-hadiths-section {
        padding: 20px;
    }
    
    .hadith-content {
        font-size: 16px;
    }
    
    .narrator-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .similar-actions {
        flex-direction: column;
    }
}