/* 
   Premium UI Enhancements for BakerMarket
   Focus: Glassmorphism, Modern Shadows, and smooth transitions
*/

:root {
    --premium-blur: 12px;
    --premium-glass-bg: rgba(255, 255, 255, 0.7);
    --premium-glass-border: rgba(255, 255, 255, 0.3);
    --premium-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --premium-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --premium-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Glass Card */
.glass-card {
    background: var(--premium-glass-bg);
    backdrop-filter: blur(var(--premium-blur));
    -webkit-backdrop-filter: blur(var(--premium-blur));
    border: 1px solid var(--premium-glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--premium-shadow-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 15px 15px -5px rgba(0, 0, 0, 0.04);
}

/* Premium Buttons */
.btn-premium-primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: var(--premium-shadow-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-premium-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--premium-shadow-lg);
    color: white;
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: var(--brand-primary);
    color: white;
}

/* Enhanced Dashboard Stats */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-v2 {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: white;
    box-shadow: var(--premium-shadow-md);
    position: relative;
    overflow: hidden;
}

.stat-card-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: var(--brand-primary);
    opacity: 0.05;
    border-radius: 50%;
}

.stat-card-v2 i {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-card-v2 h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
}

.stat-card-v2 p {
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin: 0.5rem 0 0 0;
}

/* Modern Tabs */
.tab-list-v2 {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.4rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.tab-btn-v2 {
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.2s ease;
}

.tab-btn-v2.active {
    background: white;
    color: var(--brand-primary);
    box-shadow: var(--premium-shadow-sm);
}

/* Mobile Friendly Grid for Dashboards */
@media (max-width: 768px) {
    .stats-grid-v2 {
        grid-template-columns: 1fr;
    }

    .mobile-scroll-x {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
}

/* Floating Action Button for Mobile */
.fab-mobile {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: var(--brand-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--premium-shadow-lg);
    z-index: 999;
}

.fab-mobile i {
    font-size: 1.5rem;
}

/* Unified Order Styles */
.premium-order-card {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--premium-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-order-card:hover {
    box-shadow: var(--premium-shadow-lg);
}

.order-header-unified {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.order-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.order-id-badge {
    background: var(--brand-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.order-header-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.order-price-prominent {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-primary);
}

.premium-order-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.premium-order-item:hover {
    transform: translateX(5px);
    border-color: var(--brand-primary);
    box-shadow: var(--premium-shadow-sm);
}

.order-item-img {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    object-fit: cover;
    margin-right: 1.25rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-info-block {
    background: white;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.order-info-block h6 {
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.status-badge-premium {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: #fff8e1;
    color: #f59e0b;
}

.status-in-progress {
    background: #e3f2fd;
    color: #1976d2;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background: #ffebee;
    color: #d32f2f;
}

@media (max-width: 576px) {
    .order-header-meta {
        gap: 0.75rem;
    }

    .order-header-meta .order-date {
        display: none;
    }

    .order-price-prominent {
        font-size: 1.1rem;
    }
}