.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    margin: 20px auto;
    max-width: 1200px;
}

.page-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Search Styles */
.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto 30px;
}

.search-input {
    border: none;
    border-radius: 50px;
    padding: 15px 50px 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 16px;
    width: 100%;
}

.search-input:focus {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    pointer-events: none;
}

/* Desktop Table View */
.desktop-view {
    display: block;
}

.mobile-view {
    display: none;
}

.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.custom-table {
    margin: 0;
    border: none;
}

.custom-table thead {
    background: var(--primary-color);
    color: white;
}

.custom-table th {
    border: none;
    padding: 20px 15px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.custom-table td {
    border: none;
    padding: 20px 15px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.custom-table tbody tr {
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doctor-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #667eea;
    transition: all 0.3s ease;
}

.doctor-img:hover {
    transform: scale(1.1);
    border-color: #764ba2;
}

/* Mobile Cards View */
.doctor-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.card-doctor-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.card-doctor-img:hover {
    transform: scale(1.05);
}

.card-doctor-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color:white;
}

.card-doctor-specialty {
    font-size: 14px;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

.card-body {
    padding: 20px;
}

.card-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.card-info-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-right-color: #667eea;
    transform: translateX(-5px);
}

.card-info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 15px;
    font-size: 16px;
    flex-shrink: 0;
}

.card-info-text {
    flex: 1;
    min-width: 0;
}

.card-info-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 2px;
}

.card-info-value {
    color: #7f8c8d;
    font-size: 14px;
    word-wrap: break-word;
}

.card-actions {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    background: #f8f9fa;
}

/* Button Styles */
.btn-details {
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.btn-book {
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    border: none;
    padding: 25px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-doctor-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modal-doctor-img:hover {
    transform: scale(1.05);
}

.modal-info-item {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-right: 4px solid #667eea;
    transition: all 0.3s ease;
}

.modal-info-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-3px);
}

.modal-info-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-info-value {
    color: #7f8c8d;
    word-wrap: break-word;
}

.modal-footer {
    border: none;
    padding: 25px;
    background: #f8f9fa;
}

/* Loading and Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.doctor-card {
    animation: fadeInUp 0.6s ease forwards;
}

.doctor-card:nth-child(even) {
    animation-delay: 0.1s;
}

.doctor-card:nth-child(odd) {
    animation-delay: 0.2s;
}

.card-doctor-img:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .custom-table th,
    .custom-table td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .doctor-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .main-container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .search-container {
        margin-bottom: 20px;
    }

    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }

    .card-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-details,
    .btn-book {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px;
        flex: 1;
        min-width: 120px;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-doctor-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px 0;
    }

    .main-container {
        margin: 5px;
        padding: 15px;
    }

    .page-title {
        font-size: 22px;
    }

    .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 14px;
    }

    .search-icon {
        right: 15px;
        font-size: 16px;
    }

    .card-header {
        padding: 15px;
    }

    .card-doctor-img {
        width: 70px;
        height: 70px;
    }

    .card-doctor-name {
        font-size: 18px;
        color:white;
    }

    .card-doctor-specialty {
        font-size: 13px;
    }

    .card-body {
        padding: 15px;
    }

    .card-info-item {
        padding: 10px;
        margin-bottom: 12px;
    }

    .card-info-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-left: 10px;
    }

    .card-info-label {
        font-size: 13px;
    }

    .card-info-value {
        font-size: 13px;
    }

    .card-actions {
        padding: 15px;
        flex-direction: column;
    }

    .btn-details,
    .btn-book {
        padding: 12px 20px;
        font-size: 14px;
        margin: 3px 0;
        width: 100%;
    }

    .modal-dialog {
        margin: 5px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-doctor-img {
        width: 100px;
        height: 100px;
    }

    .modal-info-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .modal-info-label {
        font-size: 13px;
    }

    .modal-info-value {
        font-size: 13px;
    }

    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }

    .modal-footer .btn {
        margin: 3px 0;
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .page-title {
        font-size: 20px;
    }

    .card-doctor-name {
        font-size: 16px;
        color:white;
    }

    .card-info-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin-left: 8px;
    }

    .btn-details,
    .btn-book {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .main-container {
        box-shadow: none;
        background: white;
        padding: 20px;
    }

    .mobile-view {
        display: none;
    }

    .desktop-view {
        display: block;
    }

    .btn-details,
    .btn-book {
        display: none;
    }

    .search-container {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-info-item {
        border: 2px solid #333;
    }

    .btn-details,
    .btn-book {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* Pagination Styles */
.pagination {
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination .page-link {
    color: #667eea;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin: 0 3px;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    color: white;
    background: var(--primary-color);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    color: white;
    background: var(--primary-color);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Pagination info */
.pagination-info {
    text-align: center;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.pagination-info strong {
    color: #2c3e50;
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 2px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 1px;
    }
    
    /* Hide some page numbers on very small screens */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}

/* Enhanced pagination with icons */
.pagination .page-link i {
    font-size: 12px;
}

/* Pagination container */
.pagination-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for pagination */
.pagination .page-item {
    transition: all 0.3s ease;
}

.pagination .page-item:hover {
    transform: scale(1.05);
}

.pagination .page-item.active {
    transform: scale(1.1);
}

/* Loading state for pagination */
.pagination-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination-loading .page-link {
    cursor: wait;
}