/* Filter Coupon Styles */
.filter-box-coupon {
    margin-bottom: 30px;
    padding: 0.25rem;
    border-radius: 0.375rem;
    background-color: #fff;
    margin-top: 1rem;
}
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    text-transform: none;
    gap: 0;
}
.filter-tab {
    font-weight: normal;
    text-transform: none;
}
.filter-tabs.category-filters {
    margin-bottom: 0px;
    gap: 8px;
}
.filter-tabs.category-filters .filter-tab {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0.25rem;
    line-height: unset;
    min-height: unset;
    background-color: rgba(243, 244, 246, 1);
    border-radius: 0.375rem;
}
@media only screen and (min-width: 640px) {
    .filter-box-coupon {
        padding: 12px;
        margin-top: 2rem;
    }
    .filter-tabs.category-filters .filter-tab {
        padding: 0.5rem;
    }
}
.filter-tab:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}
.category-icon-filter img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
/* Status tabs styling */
.status-tab.active {
    background: #008a07;
    border-color: #008a07;
    color: white;
}
.status-tab.active:hover {
    background: #218838;
    border-color: #218838;
}
/* Category tabs styling */
.category-tab.active {
    background: #008a07;
    border-color: #008a07;
}
/* Different colors for specific status tabs */
/* .status-tab[data-status="hot"].active {
    background: #008a07;
    border-color: #008a07;
}
.status-tab[data-status="hot"].active:hover {
    background: #c82333;
    border-color: #c82333;
}
.status-tab[data-status="coming"].active {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}
.status-tab[data-status="coming"].active:hover {
    background: #e0a800;
    border-color: #e0a800;
}
.status-tab[data-status="ongoing"].active {
    background: #28a745;
    border-color: #28a745;
}
.status-tab[data-status="ongoing"].active:hover {
    background: #218838;
    border-color: #218838;
} */
/* Result Coupons Styles */
.result-coupons {
    min-height: 400px;
}
.coupons-grid {
    margin-bottom: 20px;
}
.loading-placeholder,
.no-results,
.error-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #6c757d;
}
.loading-placeholder {
    background: #f8f9fa;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}
.no-results {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
/* Load More Filter Button */
#load-more-filter {
    margin: 20px 0;
}
#load-more-filter.loading .loading-circles span {
    animation: rotateY 1.2s ease-in-out infinite;
}
/* Responsive Filter Tabs */
@media (max-width: 768px) {
    .filter-tabs {
        justify-content: center;
    }
    .filter-tab {
        font-size: 12px;
        padding: 10px 16px;
    }
}
.status-filters .filter-tab {
    margin: 0;
    min-height: unset;
    font-size: 10px;
    line-height: 1.25rem;
    padding: 0.25rem;
    border-color: #008a07;
    border-radius: 0;
}
.status-filters .filter-tab:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-right: 0;
}
.status-filters .filter-tab:nth-child(3) {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-left: 0;
}
.status-filters .voucher-other-dropdown .voucher-other-btn {
    border: 1px solid #000000;
    font-weight: 400;
    background-color: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.hot-coupon {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
    .voucher-other-dropdown .filter-tab,
    .status-filters .filter-tab {
        font-size: 0.75rem !important;
        line-height: 1rem !important;
        padding: 0.5rem !important;
    }
    .voucher-other-dropdown .filter-tab {
        padding: 0.5rem;
    }
}
@media (min-width: 1024px) {
    .voucher-other-dropdown .filter-tab,
    .status-filters .filter-tab {
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
    }
    .hot-coupon {
        font-size: 1.5rem;
        line-height: 2rem;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
}
@media (min-width: 1110px) {
    .coupons-grid > .col {
        flex-basis: 33.3333% !important;
        max-width: 33.3333% !important;
    }
}

/* Horizontal Scroll for Category Filters */
.filter-tabs.category-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

/* Hide scrollbar completely on all devices */
.filter-tabs.category-filters::-webkit-scrollbar {
    display: none;
}

.filter-tabs.category-filters .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: auto;
}

/* Voucher Other Dropdown Styles */
.voucher-other-dropdown {
    position: relative;
    display: inline-block;
    margin-left: auto;
}
.voucher-other-btn i {
    font-size: 14px;
}

.voucher-other-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 1000;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.voucher-other-dropdown:hover .voucher-other-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.voucher-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.voucher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    border: 1px solid #f3f4f6;
}

.voucher-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-1px);
    color: #374151;
}

.voucher-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.voucher-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.voucher-icon.default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.voucher-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.voucher-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.voucher-count {
    font-size: 11px;
    color: #6b7280;
}

/* Arrow pointer for tooltip */
.voucher-other-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voucher-other-tooltip {
        right: -10px;
        min-width: 280px;
    }

    .voucher-grid {
        grid-template-columns: 1fr;
    }

    .voucher-other-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Skeleton Loading Animation */
.skeleton-item {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    height: 160px;
}

.skeleton-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skeleton-content {
    display: flex;
    height: 100%;
    align-items: stretch;
}

.skeleton-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    border-right: 2px dashed #e5e7eb;
    padding-right: 8px;
    margin-left: 24px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    margin-bottom: 8px;
}

.skeleton-category {
    width: 50px;
    height: 12px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 6px;
}

.skeleton-right {
    flex: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 20px;
}

.skeleton-title {
    width: 80%;
    height: 16px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    margin-bottom: 8px;
}

.skeleton-subtitle {
    width: 60%;
    height: 14px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 7px;
    margin-bottom: 12px;
}

.skeleton-discount {
    width: 40%;
    height: 20px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 10px;
    margin-bottom: 8px;
}

.skeleton-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.skeleton-date {
    width: 80px;
    height: 12px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 6px;
}

.skeleton-button {
    width: 105px;
    height: 28px;
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-radius: 8px;
}

/* Mobile responsive for skeleton */
@media (max-width: 639px) {
    .skeleton-left {
        min-width: 80px;
        margin-left: 16px;
    }

    .skeleton-avatar {
        width: 32px;
        height: 32px;
    }
}
