/* Modern Design System - Grocery Assistant */

/* ============================================
   TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   GLOBAL OVERRIDES
   ============================================ */
html, body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   MUD PAPER - Rounded & Clean
   ============================================ */
.mud-paper {
    border-radius: 12px !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mud-paper:not(.mud-paper-outlined):not([class*="mud-elevation-0"]) {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

/* ============================================
   MUD BUTTONS - Modern Styling
   ============================================ */
.mud-button-root {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    transition: all 0.2s ease !important;
}

.mud-button-filled.mud-button-primary {
    background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.mud-button-filled.mud-button-primary:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-1px);
}

.mud-button-filled.mud-button-secondary {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}

/* ============================================
   MUD APPBAR - Clean White
   ============================================ */
.mud-appbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   MUD DRAWER - Refined Sidebar
   ============================================ */
.mud-drawer {
    background: #FFFFFF !important;
}

/* ============================================
   MUD NAV LINKS - Modern Hover
   ============================================ */
.mud-nav-link {
    border-radius: 10px !important;
    margin: 2px 0 !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.mud-nav-link:hover {
    background-color: #EEF2FF !important;
}

.mud-nav-link.active {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF) !important;
    color: #6366F1 !important;
    font-weight: 600 !important;
}

.mud-nav-link.active .mud-nav-link-icon {
    color: #6366F1 !important;
}

/* ============================================
   MUD CHIP - Refined
   ============================================ */
.mud-chip {
    border-radius: 8px !important;
    font-weight: 500 !important;
}

/* ============================================
   MUD TABLE - Clean Look
   ============================================ */
.mud-table {
    border-radius: 12px !important;
    overflow: hidden;
}

.mud-table-head .mud-table-cell {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   MUD CARD - Modern Cards
   ============================================ */
.mud-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.mud-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.04) !important;
}

/* ============================================
   MUD ALERT - Rounded
   ============================================ */
.mud-alert {
    border-radius: 10px !important;
}

/* ============================================
   MUD DIALOG - Modern
   ============================================ */
.mud-dialog {
    border-radius: 16px !important;
}

/* ============================================
   MUD INPUT - Refined Inputs
   ============================================ */
.mud-input-outlined .mud-input-outlined-border {
    border-radius: 10px !important;
}

/* ============================================
   MUD EXPANSION PANEL - Clean
   ============================================ */
.mud-expand-panel {
    border-radius: 12px !important;
    margin-bottom: 8px !important;
}

/* ============================================
   SCROLLBAR - Custom
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-in {
    animation: slideInLeft 0.3s ease-out;
}

/* ============================================
   GRADIENT TEXT UTILITY
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-pink {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MODERN CARD UTILITIES
   ============================================ */
.modern-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.modern-card:hover {
    border-color: #C7D2FE;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   FEATURE ICON CONTAINERS
   ============================================ */
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.feature-icon-wrapper:hover {
    transform: scale(1.05);
}

.feature-icon-indigo {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: #6366F1;
}

.feature-icon-purple {
    background: linear-gradient(135deg, #F3E8FF, #EDE9FE);
    color: #8B5CF6;
}

.feature-icon-pink {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
    color: #EC4899;
}

.feature-icon-blue {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #3B82F6;
}

.feature-icon-green {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #10B981;
}

.feature-icon-amber {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #F59E0B;
}

/* ============================================
   STEPPER OVERRIDE
   ============================================ */
.mud-stepper .mud-step-label-icon {
    border-radius: 10px !important;
}

/* ============================================
   MUD AVATAR - GRADIENT SUPPORT
   ============================================ */
.mud-avatar {
    border-radius: 12px !important;
}

/* ============================================
   SELECTION & FOCUS
   ============================================ */
::selection {
    background: #C7D2FE;
    color: #312E81;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .mud-drawer {
        z-index: 1300 !important;
    }
}
