/* Custom CSS for Mangyan Crafts */

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.alert-info {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Form animations */
.form-control:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Product card hover effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom button hover animation */
.btn-hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px -2px rgba(209, 88, 0, 0.3);
}

/* Animation for fading in elements */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b45309;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .mobile-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-hidden {
        display: none;
    }
}

/* Image placeholders with loading animation */
.img-loading {
    position: relative;
    background-color: #f8f8f8;
    overflow: hidden;
}

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

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 9999px;
    background-color: #fef3c7;
    color: #92400e;
}

/* QR code container */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px dashed #d97706;
    border-radius: 0.5rem;
    background-color: #fffbeb;
}

/* Order status indicators */
.status-pending {
    color: #9a3412;
    background-color: #ffedd5;
}

.status-confirmed {
    color: #0f766e;
    background-color: #ccfbf1;
}

.status-shipped {
    color: #1e40af;
    background-color: #dbeafe;
}

.status-delivered {
    color: #166534;
    background-color: #dcfce7;
}

.status-cancelled {
    color: #be123c;
    background-color: #ffe4e6;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Notification Dropdown Animations */
#notification-dropdown-menu {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#notification-dropdown-menu.opacity-100 {
    opacity: 1;
    transform: translateY(0);
}

.notification-item {
    transition: all 0.2s ease-in-out;
}

.notification-item:hover {
    transform: translateX(5px);
}

.notification-count {
    transition: all 0.3s ease;
}

@keyframes fadeInNotification {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInNotification {
    animation: fadeInNotification 0.3s ease forwards;
}

/* Style for empty notification state */
.empty-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
}

/* Style for notification icons */
.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(245, 158, 11, 0.1);
    color: rgb(245, 158, 11);
    margin-right: 0.75rem;
} 