/**
 * Clients page specific styles
 */

/* Modal slide-up animation */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-modal-slide-up {
    animation: modalSlideUp 0.3s ease-out;
}

/* Table row hover effects */
.clients-table tbody tr {
    transition: all 0.2s ease;
}

.clients-table tbody tr:hover {
    background-color: rgba(236, 72, 153, 0.05);
    transform: translateX(2px);
}

/* Search input animation */
#client-search:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Pagination buttons */
.pagination-btn {
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Badge animations */
.badge-discount,
.badge-visits {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Action buttons hover */
.action-btn {
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.2);
}

/* Stats cards pulse effect */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.stats-card {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Form input focus effects */
.form-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Empty state illustration */
.empty-state {
    animation: fadeIn 0.5s ease-out;
}

/* CSV import hover effect */
#csv-import-input:hover + label {
    background-color: #2563eb;
}

/* Loading spinner for async operations */
.loading-spinner {
    border: 3px solid rgba(236, 72, 153, 0.1);
    border-top-color: #ec4899;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Phone input mask styling */
#client-phone {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Discount input styling */
#client-discount {
    text-align: center;
    font-weight: 600;
}

/* Responsive table scrollbar */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Sort indicator animation */
.sort-indicator {
    transition: transform 0.2s ease;
}

th:hover .sort-indicator {
    transform: translateY(-2px);
}

/* Client card hover effect */
.client-card {
    transition: all 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .clients-table {
        font-size: 0.875rem;
    }

    .clients-table th,
    .clients-table td {
        padding: 0.75rem 0.5rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Print styles for client list */
@media print {
    .no-print,
    button,
    .action-btn {
        display: none !important;
    }

    .clients-table {
        border: 1px solid #ddd;
    }

    .clients-table th,
    .clients-table td {
        border: 1px solid #ddd;
        padding: 8px;
    }
}
