/* Services Page Enhancements */

/* Search Box Animation */
.search-box {
    position: relative;
}

.search-box input {
    transition: all 0.3s;
}

.search-box input:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Category Filter Buttons */
.firstgroup_item {
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.firstgroup_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.firstgroup_item:hover::before {
    left: 100%;
}

.firstgroup_item.active {
    transform: scale(1.05);
}

/* Table Row Hover Effects */
.tablelist tbody tr {
    transition: background-color 0.3s, box-shadow 0.3s;
}

.tablelist tbody tr:hover {
    background: var(--gray-50);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Checkbox Animations */
input[type="checkbox"] {
    transition: all 0.3s;
    cursor: pointer;
}

input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Button Group */
.btn-group .btn {
    position: relative;
    overflow: hidden;
}

.btn-group .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-group .btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Status Badges with Pulse */
.user-center_dot {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Auto Renew Switch */
.custom-switch {
    transition: all 0.3s;
}

.custom-switch:hover {
    transform: scale(1.05);
}

/* Pagination Hover */
.pagination .page-item {
    margin: 0 0.125rem;
}

.pagination .page-link {
    transition: all 0.3s;
}

.pagination .page-link:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Table Header Gradient */
.tablelist thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.tablelist thead th {
    position: relative;
    overflow: hidden;
}

.tablelist thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.tablelist thead th:hover::after {
    transform: translateX(100%);
}

/* Action Buttons */
.btn-sm {
    transition: all 0.3s;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading State */
.table-container {
    position: relative;
}

.table-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smooth Scroll for Table */
.table-responsive {
    scroll-behavior: smooth;
}

/* Card Shadow on Hover */
.card {
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
