/* Quran Dashboard Custom Styles */

/* Card Animations */
.card-animate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-animate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* Table Row Hover */
.table-row-hover {
    transition: all 0.2s ease;
}

.table-row-hover:hover {
    background-color: #f8f9fa !important;
    transform: scale(1.01);
}

/* Ayat Card Styling */
.ayat-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.ayat-card:hover {
    transform: translateX(8px);
    border-left-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15) !important;
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Avatar Sizes */
.avatar-sm {
    width: 3rem;
    height: 3rem;
}

.avatar-md {
    width: 4rem;
    height: 4rem;
}

.avatar-lg {
    width: 5rem;
    height: 5rem;
}

/* Soft Background Colors */
.bg-soft-primary {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-soft-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.bg-soft-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* Arabic Text Styling */
.arabic-text {
    font-family: 'Amiri', 'Traditional Arabic', 'Arial', serif;
    direction: rtl;
    text-align: right;
    line-height: 2;
    font-size: 1.25rem;
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Card Border Top Colors */
.border-top-primary {
    border-top: 4px solid #667eea !important;
}

.border-top-success {
    border-top: 4px solid #10b981 !important;
}

.border-top-info {
    border-top: 4px solid #3b82f6 !important;
}

.border-top-warning {
    border-top: 4px solid #f59e0b !important;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Button Improvements */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Shadow Improvements */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .arabic-text {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Pagination Styling */
.pagination {
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    min-width: 38px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.5;
}

.pagination-rounded .page-link {
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pagination-rounded .page-item:first-child .page-link,
.pagination-rounded .page-item:last-child .page-link {
    border-radius: 50% !important;
}

/* Global Table Styling */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem 0.75rem;
}

.table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table-light {
    background-color: #f8f9fa;
}

/* Table Row Hover Effect */
.table-row-hover {
    transition: all 0.2s ease;
}

.table-row-hover:hover {
    background-color: #f8f9fa !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Card Improvements */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-header {
    padding: 1.25rem 1.5rem;
    background-color: transparent;
}

.card-header.bg-transparent {
    background-color: transparent !important;
}

/* Button Group Styling */
.d-flex.gap-2 > * {
    margin-right: 0.5rem;
}

.d-flex.gap-2 > *:last-child {
    margin-right: 0;
}

/* Image Thumbnail Improvements */
.img-thumbnail {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.img-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
}

.badge.rounded-pill {
    padding: 0.35em 0.65em;
}

/* Empty State Styling */
.text-center .text-muted {
    padding: 2rem;
}

.text-center .text-muted i {
    opacity: 0.5;
}

