/* Custom Styles for nussala */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    min-height: 400px;
}

/* Product Card Hover Effect */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Hover Card */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Like Button */
.like-btn.active,
.like-btn-detail.active {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Interactions Bar */
.interactions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Price Display */
.price {
    font-weight: bold;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Category Card */
.category-card {
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
    transform: translateY(-3px);
}

/* Shop Card */
.shop-card {
    border-radius: 10px;
    overflow: hidden;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Comment Section */
.comment {
    animation: fadeIn 0.5s ease;
}

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

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Social Share Buttons */
.social-share a {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.social-share a:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .interactions-bar {
        flex-direction: column;
    }
    
    .interactions-bar .btn {
        width: 100%;
    }
}

/* Dashboard Styles */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

/* Table Responsive */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

/* Alert Animation */
.alert {
    animation: slideInRight 0.5s ease;
}

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

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Product Detail Image */
#productCarousel img {
    background: white;
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ========================================
   Notifications Sonores - Merchant
   ======================================== */

/* Animation de pulsation pour les notifications */
@keyframes notification-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.notification-pulse {
    animation: notification-pulse 0.6s ease-in-out;
}

/* Badge de notification */
.pending-orders-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #dc3545;
    border-radius: 10px;
    vertical-align: middle;
}

/* Contrôle de notification sonore */
.notification-control {
    position: relative;
    display: inline-block;
}

.notification-toggle-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #0d6efd;
    background-color: white;
    color: #0d6efd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-toggle-btn:hover {
    background-color: #0d6efd;
    color: white;
}

.notification-toggle-btn.active {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.notification-toggle-btn.active:hover {
    background-color: #157347;
    border-color: #157347;
}

.notification-toggle-btn i {
    font-size: 1.1rem;
}

/* Indicateur de statut */
.notification-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc3545;
    display: inline-block;
    margin-left: 0.5rem;
}

.notification-toggle-btn.active .notification-status-indicator {
    background-color: #28a745;
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

