/* Shadcn UI Design System for Plastic Mfg App */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 32.1% 91.4%;
    --input: 214.3 32.1% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.75rem;
}

[x-cloak] { display: none !important; }

body {
    font-family: 'Inter', 'Be Vietnam Pro', sans-serif;
    background-color: hsl(var(--secondary));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
}

.font-brand {
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Base Shadcn Components */
.s-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.s-input {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.s-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.1);
}

.s-button-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 500;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.s-button-primary:hover { opacity: 0.9; }

/* Dashboard Sidebar Styling */
.glass-dark {
    background: #020617; /* Deep Slate from Shadcn Dark */
    color: white;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-item-active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Popover & Multi-select */
.s-popover {
    background-color: hsl(var(--popover));
    color: hsl(var(--popover-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.s-dropdown-item {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s-dropdown-item:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.s-dropdown-item-active {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}


/* Custom Scrollbar Hide but keep functional */
.custom-scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.custom-scrollbar-hide::-webkit-scrollbar {
    display: none;
}
