/* Perawi Action Buttons */
.View-PerawiInfo-btn, .View-ListHadis-btn {
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.View-PerawiInfo-btn:hover, .View-ListHadis-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Perawi Background styles (similar to hadis modal) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, #007cde 0%, #00a3ff 100%);
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    position: relative;
    color: white;
}

/* Profile section */
.profile-section {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-image i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

/* Biodata section */
.biodata-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.biodata-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 500;
}

.biodata-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.biodata-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.biodata-row:last-child {
    border-bottom: none;
}

.biodata-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.biodata-value {
    font-size: 16px;
    line-height: 1.6;
}

/* Footer */
.modal-footer {
    text-align: center;
    margin-top: 30px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 35px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hadith List Modal Specific Styles */
.hadis-list-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search box styles */
.hadis-list-search {
    position: relative;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 15px;
}

.hadis-list-search .search-input {
    width: 100%;
    padding: 8px 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

.hadis-list-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hadis-list-search .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.View-Hadis-btn {
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.View-Hadis-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Table styles */
.hadis-list-table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden; /* This will ensure the rounded corners are visible */
}

.hadis-list-table table {
    width: 100%;
    border-collapse: collapse;
}

.hadis-list-table th,
.hadis-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hadis-list-table th {
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
}

.hadis-list-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Pagination styles */
.hadis-list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pagination-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-image i {
        font-size: 50px;
    }
}
