/* ===================================================
   Modulix Storefront — app.css
   Tailwind overrides, CSS variabelen, animaties
   =================================================== */

/* ── CSS Variabelen ── */
:root {
    --primary: #224a9a;
    --primary-light: #2d5cb8;
    --primary-dark: #1a3978;
    --secondary: #0EA5E9;
    --accent: #E8A020;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-dark: #0F172A;

    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    --border-color: #E2E8F0;
    --border-focus: var(--primary);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    --navbar-height: 72px;
    --sidebar-width: 260px;
    --container-max: 1280px;
}

/* ── Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); color: var(--text-primary); background-color: var(--bg-secondary); line-height: 1.6; min-height: 100vh; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ── Selectie ── */
::selection { background: rgba(27, 58, 123, 0.15); color: var(--primary-dark); }

/* ── Links ── */
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }

/* ── Afbeeldingen ── */
img { max-width: 100%; height: auto; display: block; }

/* ── Tailwind Config ── */
.font-sans { font-family: var(--font-sans) !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* ── Animaties ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes bounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } }
@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.animate-fade-in { animation: fadeIn var(--transition-slow) ease-out; }
.animate-fade-in-up { animation: fadeInUp var(--transition-slow) ease-out; }
.animate-fade-in-down { animation: fadeInDown var(--transition-slow) ease-out; }
.animate-slide-in-right { animation: slideInRight var(--transition-slow) ease-out; }
.animate-slide-in-left { animation: slideInLeft var(--transition-slow) ease-out; }
.animate-scale-in { animation: scaleIn var(--transition-slow) ease-out; }
.animate-bounce-in { animation: bounceIn 0.5s ease-out; }

/* ── Skeleton Laden ── */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); }

/* ── Toast Container ── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: 100%; pointer-events: none; }
.toast-item { pointer-events: auto; animation: toastSlideIn 0.3s ease-out; border-radius: var(--radius-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font-size: 0.875rem; font-weight: 500; backdrop-filter: blur(8px); }
.toast-item.leaving { animation: toastSlideOut 0.3s ease-in forwards; }
.toast-success { background: rgba(22, 163, 74, 0.95); color: white; }
.toast-error { background: rgba(220, 38, 38, 0.95); color: white; }
.toast-warning { background: rgba(217, 119, 6, 0.95); color: white; }
.toast-info { background: rgba(37, 99, 235, 0.95); color: white; }

/* ── Modal Overlay ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.2s ease-out; }
.modal-content { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; animation: scaleIn 0.2s ease-out; }

/* ── Knoppen ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-lg); border: none; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; outline: none; font-family: var(--font-sans); line-height: 1.4; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(27, 58, 123, 0.3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-secondary:hover:not(:disabled) { background: var(--border-color); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover:not(:disabled) { background: rgba(27, 58, 123, 0.05); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #DC2626; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { padding: 10px; }

/* ── Formulieren ── */
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; font-size: 0.875rem; font-family: var(--font-sans); color: var(--text-primary); background: white; border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27, 58, 123, 0.1); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 4px; }
.form-group { margin-bottom: 1.25rem; }

/* ── Kaarten ── */
.card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow var(--transition-base), transform var(--transition-base); }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; font-size: 0.7rem; font-weight: 700; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.5px; }
.badge-success { background: rgba(22, 163, 74, 0.1); color: #16A34A; }
.badge-warning { background: rgba(217, 119, 6, 0.1); color: #D97706; }
.badge-danger  { background: rgba(220, 38, 38, 0.1); color: #DC2626; }
.badge-info    { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }

/* ── Tekst Clamp ── */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

/* ── Zijbalk Layout ── */
.layout-with-sidebar { display: flex; gap: 2rem; max-width: var(--container-max); margin: 0 auto; padding: 2rem 1.5rem; }
.layout-sidebar { width: var(--sidebar-width); flex-shrink: 0; }
.layout-main { flex: 1; min-width: 0; }
@media (max-width: 1024px) { .layout-with-sidebar { flex-direction: column; } .layout-sidebar { width: 100%; } }

/* ── Pagina Transities (Vue) ── */
.page-enter-active, .page-leave-active { transition: opacity 0.2s ease, transform 0.2s ease; }
.page-enter-from { opacity: 0; transform: translateY(8px); }
.page-leave-to { opacity: 0; transform: translateY(-8px); }

/* ── Responsieve Container ── */
.container-app { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 640px) { .container-app { padding: 0 1rem; } }

/* ── Prijs Tag ── */
.price-current { font-size: 1.125rem; font-weight: 800; color: var(--text-primary); }
.price-old { font-size: 0.875rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.price-discount { font-size: 0.75rem; font-weight: 700; color: var(--danger); background: rgba(239, 68, 68, 0.08); padding: 2px 8px; border-radius: var(--radius-full); margin-left: 8px; }

/* ── Sterren Beoordeling ── */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating .star { cursor: pointer; transition: transform var(--transition-fast); }
.star-rating .star:hover { transform: scale(1.15); }
.star-rating.readonly .star { cursor: default; }
.star-rating.readonly .star:hover { transform: none; }

/* ── Lege Toestand ── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; }
.empty-state-icon { width: 80px; height: 80px; margin-bottom: 1.5rem; opacity: 0.4; }
.empty-state-title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.empty-state-desc { font-size: 0.875rem; color: var(--text-secondary); max-width: 320px; }

/* ── Laad Spinner ── */
.spinner { width: 32px; height: 32px; border: 3px solid var(--bg-tertiary); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

/* ── Navigatiebalk ── */
.main-navbar { height: var(--navbar-height); background: white; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-sm); }

/* ── Voettekst ── */
.main-footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.7); padding: 3rem 0 1.5rem; margin-top: auto; }
.main-footer a:hover { color: white; }

/* ── Broodkruimel ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-separator { color: var(--text-muted); font-size: 0.7rem; }

/* ── Status Badge ── */
.status-pending    { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.status-confirmed  { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.status-processing { background: rgba(139, 92, 246, 0.1); color: #7C3AED; }
.status-shipped    { background: rgba(6, 182, 212, 0.1); color: #0891B2; }
.status-delivered  { background: rgba(22, 163, 74, 0.1); color: #16A34A; }
.status-cancelled  { background: rgba(220, 38, 38, 0.1); color: #DC2626; }
.status-refunded   { background: rgba(107, 114, 128, 0.1); color: #6B7280; }
.status-active     { background: rgba(22, 163, 74, 0.1); color: #16A34A; }
.status-inactive   { background: rgba(107, 114, 128, 0.1); color: #6B7280; }
.status-verified   { background: rgba(22, 163, 74, 0.1); color: #16A34A; }
.status-rejected   { background: rgba(220, 38, 38, 0.1); color: #DC2626; }
.status-draft      { background: rgba(107, 114, 128, 0.1); color: #6B7280; }
.status-published  { background: rgba(22, 163, 74, 0.1); color: #16A34A; }

/* ── Dropdown Menu ── */
.dropdown-menu { position: absolute; right: 0; top: 100%; margin-top: 8px; background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px; z-index: 50; animation: fadeInDown 0.15s ease-out; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 0.875rem; color: var(--text-secondary); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); }
.dropdown-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* ── Tooltip ── */
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(0.9); padding: 6px 10px; background: var(--bg-dark); color: white; font-size: 0.75rem; border-radius: var(--radius-md); white-space: nowrap; pointer-events: none; opacity: 0; transition: all var(--transition-fast); }
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* ── Mobiel Menu Overlay ── */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 45; animation: fadeIn 0.2s ease-out; }
.mobile-menu-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: white; z-index: 46; box-shadow: var(--shadow-xl); overflow-y: auto; animation: slideInLeft 0.25s ease-out; }
.mobile-menu-panel .menu-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.mobile-menu-panel .menu-body { padding: 0.75rem; }
.mobile-menu-panel .menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-lg); font-size: 0.9rem; color: var(--text-secondary); transition: all var(--transition-fast); cursor: pointer; }
.mobile-menu-panel .menu-item:hover, .mobile-menu-panel .menu-item.active { background: var(--bg-tertiary); color: var(--text-primary); }
.mobile-menu-panel .menu-divider { height: 1px; background: var(--border-color); margin: 8px 0; }
.mobile-menu-panel .menu-section-title { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 14px 4px; }

/* ── Inklapbaar Menu ── */
.collapsible-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; }
.collapsible-trigger .chevron { transition: transform var(--transition-fast); }
.collapsible-trigger.open .chevron { transform: rotate(180deg); }
.collapsible-content { overflow: hidden; max-height: 0; transition: max-height 0.3s ease-out; }
.collapsible-content.expanded { max-height: 500px; }

/* ── Afdruk Stijlen ── */
@media print { .main-navbar, .main-footer, .toast-container, .modal-overlay, .mobile-menu-overlay, .mobile-menu-panel { display: none !important; } }


/* Ölçek boyutları */
