/* Vet List Container */
.dha-vets-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.dha-vets-container,
.dha-staff-container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    width: 100%;
    margin: 0 auto;
    padding: 28px;
}

/* List Header */
/* .dha-list-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 20px;
} */

.dha-list-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.dha-list-header h2 {
    margin: 0;
    color: #2c3338;
    font-size: 32px;
}

.dha-list-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2C3E50;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.dha-list-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #FFCE59;
    border-radius: 2px;
}

/* Vet Row Styling */
.dha-vet-row {
    display: grid;
    grid-template-columns: 0 1fr auto;
    align-items: start;
    padding: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: opacity 0.3s;
}

.dha-vet-row.dha-loading {
    opacity: 0.5;
    pointer-events: none;
}

.dha-vet-name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3338;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dha-vet-details {
    font-size: 14px;
    color: #666;
}

/* Status Indicator */
.dha-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dha-status-indicator.active {
    background-color: #4CAF50;
}

.dha-status-indicator.deactivated {
    background-color: #f44336;
}

.dha-assigned-count {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* Action Buttons */
.dha-col-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.dha-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.dha-btn:hover {
    opacity: 0.9;
}

.dha-btn .dashicons {
    color: white;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dha-add-btn {
    background-color: #2271b1;
    color: white;
    padding: 6px 12px;
    width: auto;
    gap: 6px;
}

.dha-contact-btn {
    background-color: #ffce59;
}

.dha-edit-btn {
    background-color: #2271b1;
}

.dha-active-btn {
    background-color: #dc3545;
}

.dha-deactivated-btn {
    background-color: #28a745;
}

/* Contact Modal */
.dha-vet-contact {
    max-width: 500px;
    margin: 0 auto;
}

.vet-profile {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.vet-profile p {
    margin: 8px 0;
}

.vet-profile strong {
    display: inline-block;
    width: 80px;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.dha-action-btn {
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.dha-action-btn:hover {
    opacity: 0.9;
}

.call-btn {
    background-color: #4CAF50;
    color: white;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.email-btn {
    background-color: #2271b1;
    color: white;
}

/* Message Styling */
.dha-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.dha-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dha-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dha-vet-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dha-col-actions {
        justify-content: stretch;
    }

    .dha-btn {
        flex: 1;
        width: auto;
        height: 36px;
        padding: 0 16px;
        gap: 6px;
    }

    .dha-btn::after {
        display: inline;
    }

    .dha-contact-btn::after {
        content: "Contact";
    }

    .dha-edit-btn::after {
        content: "Edit";
    }

    .dha-active-btn::after {
        content: "Deactivate";
    }

    .dha-deactivated-btn::after {
        content: "Activate";
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .dha-list-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dha-search-container {
        max-width: 100%;
        margin: 8px 0;
    }
}

/* Loading State */
.dha-loading {
    position: relative;
    pointer-events: none;
}

.dha-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

.dha-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Search Container */
.dha-search-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.dha-search-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 40px 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.dha-search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.dha-search-btn,
.dha-clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dha-clear-search-btn {
    right: 32px;
}

.dha-search-btn .dashicons,
.dha-clear-search-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
}

.dha-search-btn:hover .dashicons,
.dha-clear-search-btn:hover .dashicons {
    color: #2271b1;
}

/* Replace the current pagination styles in vet-list.css with these */

/* Pagination Styles */
.dha-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    padding: 16px 0;
}

.dha-pagination-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    display: none !important;
}

.dha-pagination-controls {
    display: flex;
    /* align-items: center; */
    gap: 8px;
    justify-content: center;
}

.dha-pagination-prev,
.dha-pagination-next,
.dha-pagination-pages .page-number {
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 200px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #333;
    margin: 0 4px;
}

.dha-pagination-prev:disabled,
.dha-pagination-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dha-pagination-pages {
    display: flex;
    gap: 5px;
}

.dha-pagination-pages .page-number.current {
    background: #3090ff;
    color: white;
    border-color: #3090ff;
}

.dha-pagination-ellipsis {
    padding: 8px;
    color: #666;
    display: flex;
    align-items: center;
}

.dha-pagination-prev:hover:not(:disabled),
.dha-pagination-next:hover:not(:disabled),
.dha-pagination-pages .page-number:hover:not(.current) {
    background: #f5f5f5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dha-pagination {
        width: 100%;
    }

    .dha-pagination-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .dha-pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
}