/* Reusable component styles */
.card { background: var(--card-bg); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.setup-container { max-width: 900px; margin: 0 auto; }
.setup-header { margin-bottom: 1.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card { padding: 2rem; border-radius: 10px; background: #f8f9fa; }
.container { max-width: 1140px; margin: 0 auto; }

/* Modern Home Page Styles */
.modern-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.modern-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="36" cy="36" r="3"/></g></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #666;
    z-index: 3;
}

.hero-search-input {
    flex: 1;
    padding: 18px 20px 18px 50px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.hero-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

/* Modern View Toggle */
.view-toggle-modern {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.toggle-wrapper {
    display: flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.toggle-btn:not(.active):hover {
    color: #333;
    background: rgba(102,126,234,0.1);
}

/* Modern Filters */
.filters-modern {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.filters-header h5 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.filter-row {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.modern-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.modern-apply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.modern-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    color: #666;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-reset-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Modern Product Grid */
.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modern-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-price-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.availability-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.availability-badge.available {
    background: #28a745;
    color: white;
}

.availability-badge.unavailable {
    background: #dc3545;
    color: white;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.baker-info-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.baker-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.baker-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.baker-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.baker-location {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}

.product-actions {
    text-align: center;
}

.modern-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.modern-view-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

/* Modern Baker Cards */
.modern-bakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modern-baker-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.modern-baker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-baker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.baker-header-modern {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.baker-avatar-modern {
    position: relative;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.avatar-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #28a745;
    border-radius: 50%;
    border: 3px solid white;
}

.baker-info-modern {
    flex: 1;
}

.baker-name-modern {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.rating-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars-container {
    display: flex;
    gap: 2px;
}

.filled-star {
    color: #ffc107;
}

.empty-star {
    color: #e9ecef;
}

.rating-text-modern {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.location-modern {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.baker-bio-modern {
    margin-bottom: 1.5rem;
}

.baker-bio-modern p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.baker-specialties-modern {
    margin-bottom: 1.5rem;
}

.specialties-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specialties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.products-preview-modern {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.preview-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-mini-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-mini-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.mini-product-name {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.mini-product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #28a745;
}

.baker-actions-modern {
    text-align: center;
}

.modern-baker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.modern-baker-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

/* Baker Dashboard Order Filtering */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    color: #2c3e50;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 18px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-buttons .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* Ensure filter buttons match dashboard theme when active */
.filter-buttons .btn.btn-primary {
    background: var(--brand-accent);
    color: white;
    border-color: var(--brand-accent);
    box-shadow: 0 6px 18px var(--primary-shadow);
}

.filter-buttons .btn.btn-outline-primary {
    color: var(--brand-accent);
    border-color: rgba(0,0,0,0.06);
}

/* Order Accordion Styling */
.order-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.order-title {
    font-weight: 600;
    color: #2c3e50;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.5rem 1rem; /* match site.css */
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    /* keep normal text case to match dashboard */
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: none;
}

.status-in-progress {
    background-color: #d1ecf1;
    color: #0c5460;
    border: none;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: none;
}

.status-cancelled, .status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: none;
}

.order-total-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Accordion Body Styling */
.info-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-section h5 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    padding-bottom: 0.5rem;
}

/* Bootstrap accordion theme overrides */
.accordion .accordion-button {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.06);
    transition: background 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 200ms ease;
}

.accordion .accordion-button:not(.collapsed) {
    background: var(--brand-accent);
    /* Use theme text color so expanded headers respect the selected theme */
    color: var(--text);
    /* slight lift and soft shadow to give expanded state emphasis */
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.accordion .accordion-body {
    background: var(--bg);
    color: var(--text);
}

/* Ensure accordion headers use brand-primary for icons or indicators */
.accordion .accordion-button::after {
    filter: none;
    transition: transform 300ms ease;
}

.info-section p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    margin-top: 1.5rem;
}

.order-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.order-actions .btn:hover {
    transform: translateY(-2px);
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 2rem 0;
}

.empty-state i {
    display: block;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .modern-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-bakers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .toggle-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .baker-header-modern {
        flex-direction: column;
        text-align: center;
    }
    
    .baker-info-modern {
        text-align: center;
    }
    
    /* Baker Dashboard Mobile */
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .order-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
    }

    /* Reduce product image size on Baker Dashboard for small screens (<=768px) */
    @media (max-width: 768px) {
        #products-tab .product-image-thumbnail {
            height: 110px !important;
            max-height: 110px !important;
            overflow: hidden;
        }

        #products-tab .product-image-thumbnail img,
        .product-card.enhanced .product-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .product-card.enhanced .product-image-container {
            height: 110px !important;
            max-height: 110px !important;
            overflow: hidden;
        }
    }

    /* Reduce verbosity and spacing on login screens (mobile only) */
    .login-left-column {
        display: none !important;
    }

    .card.p-4 {
        padding: 1rem !important;
    }

    .card.p-4 h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Make brand badge + text a larger tap target on mobile */
    .navbar-brand {
        padding: 0.45rem !important;
        touch-action: manipulation;
    }

    .navbar-brand .brand-badge, .navbar-brand .brand-text {
        pointer-events: none; /* ensure the anchor handles taps */
    }
}

/* Enhanced Product Cards for Dashboard */
.product-card.enhanced {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-card.enhanced .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card.enhanced:hover .product-image {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

/* Mobile & small tablets: reduce Baker Dashboard product image height to match product list/details compact view */
@media (max-width: 768px) {
    .product-image-container {
        height: 110px !important;
    }

    .product-card.enhanced .product-image {
        height: 110px !important;
        object-position: center center;
    }

    .product-header .product-title {
        font-size: 1rem;
        line-height: 1.1;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-card.enhanced .product-actions {
        margin-top: 6px;
    }
}

.no-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.product-badge .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50 !important; /* dark, always visible */
    margin-left: 1rem;
    position: relative;
    z-index: 2;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.dietary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dietary-tag {
    background: #e7f3ff;
    color: #0066cc;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.meta-item i {
    color: #999;
    width: 14px;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.product-actions .btn i {
    font-size: 0.8rem;
}

.product-actions .btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
}

.product-actions .btn-primary {
    background: #667eea;
    border-color: #667eea;
}

.product-actions .btn-primary:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
}

.product-actions .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    grid-column: 1 / -1;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #667eea;
    padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* Products Grid for Dashboard */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
}

/* Stronger mobile constraints for Baker Dashboard product images */
@media (max-width: 767px) {
    .products-grid .product-card.enhanced .product-image-container,
    .products-grid .product-image-thumbnail,
    #products-tab .product-image-thumbnail,
    .product-image-container {
        height: 100px !important;
        max-height: 100px !important;
        overflow: hidden !important;
    }

    .products-grid .product-card.enhanced .product-image,
    .products-grid img.product-image,
    .product-card.enhanced .product-image {
        height: 100px !important;
        max-height: 100px !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Very high specificity for the explicit mobile-fix class */
    .product-image-mobile-fix {
        height: 100px !important;
        max-height: 100px !important;
        overflow: hidden !important;
    }
    .product-image-mobile-fix > img,
    .product-image-mobile-fix .product-image {
        height: 100px !important;
        max-height: 100px !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Add more spacing between product action buttons on mobile */
    .product-actions {
        gap: 0.75rem !important;
    }

    .product-actions .btn {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}
