/* Custom CSS for FashionHub E-Commerce Marketplace, Voucher System, Chat, Seller Dashboard, Auth & Admin Engine */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@keyframes chatPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-toast {
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-heart-pop {
    animation: heartPulse 0.35s ease-in-out;
}

.animate-chat-pop {
    animation: chatPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Product Card Hover Effect */
.product-card {
    transition: all 0.25s ease-in-out;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(220, 38, 38, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card img {
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

/* Flash Sale Countdown Pill */
.countdown-box {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Tab Active Styles */
.account-tab-btn.active, .seller-tab-btn.active, .admin-tab-btn.active {
    background-color: #fef2f2;
    color: #dc2626;
    border-left-color: #dc2626;
    font-weight: 600;
}

.admin-tab-btn.active {
    background-color: #faf5ff;
    color: #7e22ce;
    border-left-color: #7e22ce;
}

/* Badges */
.badge-discount {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
 * VOUCHER TICKET CUSTOM STYLING
 * ========================================== */
.voucher-ticket {
    position: relative;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-left: 6px solid #dc2626;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.06);
    transition: all 0.2s ease;
}

.voucher-ticket:hover {
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.12);
    transform: translateY(-2px);
}

.voucher-ticket-claimed {
    border-left-color: #10b981;
    background: #f0fdf4;
    border-color: #a7f3d0;
}

.voucher-ticket-used {
    border-left-color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    opacity: 0.75;
}

.ticket-divider {
    border-right: 2px dashed #fca5a5;
}

/* ==========================================
 * IN-APP SELLER CHAT STYLING
 * ========================================== */
.chat-bubble-user {
    background-color: #dc2626;
    color: #ffffff;
    border-radius: 16px 16px 2px 16px;
}

.chat-bubble-seller {
    background-color: #f3f4f6;
    color: #1f2937;
    border-radius: 16px 16px 16px 2px;
}

.chat-store-item.active {
    background-color: #fef2f2;
    border-left-color: #dc2626;
}

/* ==========================================
 * SELLER & ADMIN DASHBOARD STYLING
 * ========================================== */
.seller-metric-card, .admin-metric-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    transition: all 0.2s ease;
}
.seller-metric-card:hover, .admin-metric-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* ==========================================
 * AUTHENTICATION & ROLE BADGE STYLING
 * ========================================== */
.auth-input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.role-badge-admin {
    background-color: #7e22ce;
    color: #ffffff;
}
.role-badge-seller {
    background-color: #d97706;
    color: #ffffff;
}
.role-badge-customer {
    background-color: #2563eb;
    color: #ffffff;
}
