/* Enhanced Pagination Styles for ThinkHomeo */

/* Medical Theme Color Variables */
:root {
    --medical-blue-500: #3b82f6;
    --medical-blue-600: #2563eb;
    --medical-teal-500: #14b8a6;
    --medical-teal-600: #0d9488;
    --medical-blue-50: #eff6ff;
    --medical-teal-50: #f0fdfa;
    --medical-blue-300: #93c5fd;
}

/* Pagination Container */
.pagination-container {
    background: rgba(255, 255, 255, 0.30);
    /* backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%); */
    border: 1px solid rgba(255, 255, 255, 0.28);
    /* box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); */
    border-radius: 20px;
    overflow: hidden;
}

/* Navigation Buttons */
.pagination-nav-btn {
    /* background: linear-gradient(135deg, var(--medical-blue-500), var(--medical-teal-500)); */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.pagination-nav-btn:hover {
    background: linear-gradient(135deg, var(--medical-blue-600), var(--medical-teal-600));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.pagination-nav-btn:active {
    transform: translateY(0) scale(1);
}

.pagination-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.pagination-nav-btn:hover::before {
    left: 100%;
}

/* Standard Navigation Buttons */
.pagination-std-btn {
    /* background: white; */
    border: 2px solid #e5e7eb;
    color: #374151;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination-std-btn:hover {
    background: linear-gradient(135deg, var(--medical-blue-50), var(--medical-teal-50));
    border-color: var(--medical-blue-300);
    color: var(--medical-blue-600);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Page Number Buttons */
.pagination-page-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination-page-btn:hover {
    background: linear-gradient(135deg, var(--medical-blue-50), var(--medical-teal-50));
    border-color: var(--medical-blue-300);
    color: var(--medical-blue-600);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Active Page Button */
.pagination-page-btn.active {
    background: linear-gradient(135deg, var(--medical-blue-600), var(--medical-teal-600));
    color: white;
    font-weight: 700;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 
        0 6px 16px rgba(59, 130, 246, 0.4),
        0 0 0 3px rgba(59, 130, 246, 0.2);
    cursor: default;
    position: relative;
}

.pagination-page-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Ellipsis */
.pagination-ellipsis {
    color: #9ca3af;
    font-weight: 600;
    padding: 10px 8px;
    user-select: none;
    letter-spacing: 2px;
}

/* Quick Jump Input */
.pagination-quick-input {
    /* background: rgba(255, 255, 255, 0.1); */
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.pagination-quick-input:focus {
    outline: none;
    border-color: var(--medical-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: white;
}

/* Page Info Display */
.pagination-info {
    color: #6b7280;
    font-weight: 500;
    padding: 4px 0;
}

.pagination-info .font-medium {
    color: #1f2937;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 640px) {
    .pagination-nav-btn, .pagination-std-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .pagination-page-btn {
        padding: 8px 10px;
        min-width: 38px;
        font-size: 14px;
    }
    
    .pagination-container {
        border-radius: 16px;
        margin: 0 8px;
    }
}

/* Loading States */
.pagination-loading .pagination-nav-btn,
.pagination-loading .pagination-std-btn,
.pagination-loading .pagination-page-btn {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Accessibility Improvements */
.pagination-nav-btn:focus,
.pagination-std-btn:focus,
.pagination-page-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Additional Visual Enhancements */
.pagination-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

.pagination-separator {
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
    margin: 0 8px;
}
