/** * ═══════════════════════════════════════════════════════════════════════════ * 🎨 HOT MOBILE DESIGN SYSTEM v1.0 * Unified Luxury Design System for Store, Checkout & Admin * ═══════════════════════════════════════════════════════════════════════════ * * Sections: * 1. Design Tokens (CSS Variables) * 2. Typography System * 3. Component Kit * 4. Utilities * 5. RTL/LTR Support * 6. Animations * * ═══════════════════════════════════════════════════════════════════════════ */ /* ═══════════════════════════════════════════════════════════════════════════ 1. DESIGN TOKENS - CSS VARIABLES ═══════════════════════════════════════════════════════════════════════════ */ :root { /* ───────────────────────────────────────────────────────────────────────── COLOR PALETTE - Dark Luxury Theme ───────────────────────────────────────────────────────────────────────── */ /* Primary Colors */ --hm-primary: #e11d48; --hm-primary-hover: #be123c; --hm-primary-active: #9f1239; --hm-primary-light: #fb7185; --hm-primary-glow: rgba(225, 29, 72, 0.35); /* Accent Colors */ --hm-accent: #6366f1; --hm-accent-hover: #4f46e5; --hm-accent-light: #818cf8; --hm-accent-glow: rgba(99, 102, 241, 0.35); /* Secondary Accent */ --hm-secondary: #22d3ee; --hm-secondary-hover: #06b6d4; --hm-secondary-glow: rgba(34, 211, 238, 0.25); /* Background Colors */ --hm-bg: #050509; --hm-bg-elevated: #0a0a0f; --hm-surface: #12121a; --hm-surface-hover: #1a1a25; --hm-surface-active: #22222f; --hm-surface-alt: #1c1c26; /* Text Colors */ --hm-text: #f8fafc; --hm-text-secondary: #cbd5e1; --hm-text-muted: #94a3b8; --hm-text-disabled: #64748b; --hm-text-inverse: #0f172a; /* Border Colors */ --hm-border: rgba(255, 255, 255, 0.08); --hm-border-hover: rgba(255, 255, 255, 0.15); --hm-border-focus: rgba(225, 29, 72, 0.5); --hm-border-accent: rgba(99, 102, 241, 0.3); /* Status Colors */ --hm-success: #22c55e; --hm-success-bg: rgba(34, 197, 94, 0.15); --hm-success-border: rgba(34, 197, 94, 0.3); --hm-warning: #f59e0b; --hm-warning-bg: rgba(245, 158, 11, 0.15); --hm-warning-border: rgba(245, 158, 11, 0.3); --hm-error: #ef4444; --hm-error-bg: rgba(239, 68, 68, 0.15); --hm-error-border: rgba(239, 68, 68, 0.3); --hm-info: #3b82f6; --hm-info-bg: rgba(59, 130, 246, 0.15); --hm-info-border: rgba(59, 130, 246, 0.3); /* Gold/Premium */ --hm-gold: #fbbf24; --hm-gold-light: #fcd34d; --hm-gold-glow: rgba(251, 191, 36, 0.3); /* ───────────────────────────────────────────────────────────────────────── TYPOGRAPHY ───────────────────────────────────────────────────────────────────────── */ /* Font Families */ --hm-font-primary: 'Tajawal', 'Heebo', 'Segoe UI', system-ui, sans-serif; --hm-font-display: 'Tajawal', 'Heebo', 'Segoe UI', system-ui, sans-serif; --hm-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace; /* Font Sizes - Fluid Scale */ --hm-text-xs: 0.75rem; /* 12px */ --hm-text-sm: 0.875rem; /* 14px */ --hm-text-base: 1rem; /* 16px */ --hm-text-lg: 1.125rem; /* 18px */ --hm-text-xl: 1.25rem; /* 20px */ --hm-text-2xl: 1.5rem; /* 24px */ --hm-text-3xl: 1.875rem; /* 30px */ --hm-text-4xl: 2.25rem; /* 36px */ --hm-text-5xl: 3rem; /* 48px */ /* Font Weights */ --hm-font-normal: 400; --hm-font-medium: 500; --hm-font-semibold: 600; --hm-font-bold: 700; --hm-font-extrabold: 800; /* Line Heights */ --hm-leading-none: 1; --hm-leading-tight: 1.25; --hm-leading-snug: 1.375; --hm-leading-normal: 1.5; --hm-leading-relaxed: 1.625; --hm-leading-loose: 2; /* Letter Spacing */ --hm-tracking-tighter: -0.05em; --hm-tracking-tight: -0.025em; --hm-tracking-normal: 0; --hm-tracking-wide: 0.025em; --hm-tracking-wider: 0.05em; /* ───────────────────────────────────────────────────────────────────────── SPACING SCALE ───────────────────────────────────────────────────────────────────────── */ --hm-space-0: 0; --hm-space-1: 0.25rem; /* 4px */ --hm-space-2: 0.5rem; /* 8px */ --hm-space-3: 0.75rem; /* 12px */ --hm-space-4: 1rem; /* 16px */ --hm-space-5: 1.25rem; /* 20px */ --hm-space-6: 1.5rem; /* 24px */ --hm-space-8: 2rem; /* 32px */ --hm-space-10: 2.5rem; /* 40px */ --hm-space-12: 3rem; /* 48px */ --hm-space-16: 4rem; /* 64px */ --hm-space-20: 5rem; /* 80px */ --hm-space-24: 6rem; /* 96px */ /* ───────────────────────────────────────────────────────────────────────── BORDER RADIUS ───────────────────────────────────────────────────────────────────────── */ --hm-radius-none: 0; --hm-radius-sm: 0.25rem; /* 4px */ --hm-radius-md: 0.5rem; /* 8px */ --hm-radius-lg: 0.75rem; /* 12px */ --hm-radius-xl: 1rem; /* 16px */ --hm-radius-2xl: 1.5rem; /* 24px */ --hm-radius-3xl: 2rem; /* 32px */ --hm-radius-full: 9999px; /* ───────────────────────────────────────────────────────────────────────── SHADOWS ───────────────────────────────────────────────────────────────────────── */ --hm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2); --hm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25); --hm-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3); --hm-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.35); --hm-shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.4); --hm-shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.5); /* Glow Shadows */ --hm-glow-primary: 0 0 30px var(--hm-primary-glow); --hm-glow-accent: 0 0 30px var(--hm-accent-glow); --hm-glow-secondary: 0 0 30px var(--hm-secondary-glow); --hm-glow-gold: 0 0 30px var(--hm-gold-glow); /* Card/Surface Shadows */ --hm-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.05); --hm-shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.4), var(--hm-glow-primary); --hm-shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1); /* ───────────────────────────────────────────────────────────────────────── TRANSITIONS ───────────────────────────────────────────────────────────────────────── */ --hm-duration-fast: 150ms; --hm-duration-normal: 250ms; --hm-duration-slow: 400ms; --hm-duration-slower: 600ms; --hm-ease-default: cubic-bezier(0.4, 0, 0.2, 1); --hm-ease-in: cubic-bezier(0.4, 0, 1, 1); --hm-ease-out: cubic-bezier(0, 0, 0.2, 1); --hm-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --hm-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); --hm-transition-fast: var(--hm-duration-fast) var(--hm-ease-default); --hm-transition-normal: var(--hm-duration-normal) var(--hm-ease-default); --hm-transition-slow: var(--hm-duration-slow) var(--hm-ease-default); /* ───────────────────────────────────────────────────────────────────────── Z-INDEX SCALE ───────────────────────────────────────────────────────────────────────── */ --hm-z-base: 0; --hm-z-dropdown: 100; --hm-z-sticky: 200; --hm-z-fixed: 300; --hm-z-drawer: 400; --hm-z-modal: 500; --hm-z-popover: 600; --hm-z-tooltip: 700; --hm-z-toast: 800; --hm-z-max: 9999; /* ───────────────────────────────────────────────────────────────────────── LAYOUT ───────────────────────────────────────────────────────────────────────── */ --hm-container-sm: 640px; --hm-container-md: 768px; --hm-container-lg: 1024px; --hm-container-xl: 1280px; --hm-container-2xl: 1400px; --hm-sidebar-width: 280px; --hm-header-height: 64px; } /* ═══════════════════════════════════════════════════════════════════════════ LIGHT MODE OVERRIDES ═══════════════════════════════════════════════════════════════════════════ */ [data-theme="light"], .light-mode { --hm-bg: #f5f5f7; --hm-bg-elevated: #ffffff; --hm-surface: #ffffff; --hm-surface-hover: #f8f9fa; --hm-surface-active: #f1f3f5; --hm-surface-alt: #f0f0f2; --hm-text: #1a1a1a; --hm-text-secondary: #4a4a4a; --hm-text-muted: #6b7280; --hm-text-disabled: #9ca3af; --hm-text-inverse: #ffffff; --hm-border: rgba(0, 0, 0, 0.08); --hm-border-hover: rgba(0, 0, 0, 0.15); --hm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05); --hm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08); --hm-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1); --hm-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12); --hm-shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15); --hm-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08); --hm-shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12); } /* ═══════════════════════════════════════════════════════════════════════════ 2. TYPOGRAPHY SYSTEM ═══════════════════════════════════════════════════════════════════════════ */ /* Base Typography Reset */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } body { font-family: var(--hm-font-primary); font-size: var(--hm-text-base); font-weight: var(--hm-font-normal); line-height: var(--hm-leading-normal); color: var(--hm-text); background-color: var(--hm-bg); } /* Headings */ .hm-h1, h1 { font-size: var(--hm-text-4xl); font-weight: var(--hm-font-extrabold); line-height: var(--hm-leading-tight); } .hm-h2, h2 { font-size: var(--hm-text-3xl); font-weight: var(--hm-font-bold); line-height: var(--hm-leading-tight); } .hm-h3, h3 { font-size: var(--hm-text-2xl); font-weight: var(--hm-font-bold); line-height: var(--hm-leading-snug); } .hm-h4, h4 { font-size: var(--hm-text-xl); font-weight: var(--hm-font-semibold); line-height: var(--hm-leading-snug); } .hm-h5, h5 { font-size: var(--hm-text-lg); font-weight: var(--hm-font-semibold); line-height: var(--hm-leading-normal); } .hm-h6, h6 { font-size: var(--hm-text-base); font-weight: var(--hm-font-semibold); line-height: var(--hm-leading-normal); } /* Text Utilities */ .hm-text-xs { font-size: var(--hm-text-xs); } .hm-text-sm { font-size: var(--hm-text-sm); } .hm-text-base { font-size: var(--hm-text-base); } .hm-text-lg { font-size: var(--hm-text-lg); } .hm-text-xl { font-size: var(--hm-text-xl); } .hm-text-2xl { font-size: var(--hm-text-2xl); } .hm-text-3xl { font-size: var(--hm-text-3xl); } .hm-text-muted { color: var(--hm-text-muted); } .hm-text-secondary { color: var(--hm-text-secondary); } .hm-text-primary { color: var(--hm-primary); } .hm-text-success { color: var(--hm-success); } .hm-text-warning { color: var(--hm-warning); } .hm-text-error { color: var(--hm-error); } /* ═══════════════════════════════════════════════════════════════════════════ 3. COMPONENT KIT ═══════════════════════════════════════════════════════════════════════════ */ /* ───────────────────────────────────────────────────────────────────────── BUTTON COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--hm-space-2); padding: var(--hm-space-3) var(--hm-space-5); font-family: var(--hm-font-primary); font-size: var(--hm-text-sm); font-weight: var(--hm-font-semibold); line-height: 1; text-decoration: none; border: 1px solid transparent; border-radius: var(--hm-radius-lg); cursor: pointer; transition: all var(--hm-transition-fast); white-space: nowrap; user-select: none; } .hm-btn:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; } .hm-btn:disabled, .hm-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; } /* Button Variants */ .hm-btn-primary { background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-hover)); color: white; box-shadow: var(--hm-shadow-md), var(--hm-glow-primary); } .hm-btn-primary:hover { background: linear-gradient(135deg, var(--hm-primary-hover), var(--hm-primary-active)); transform: translateY(-2px); box-shadow: var(--hm-shadow-lg), 0 0 40px var(--hm-primary-glow); } .hm-btn-primary:active { transform: translateY(0); } .hm-btn-secondary { background: var(--hm-surface); color: var(--hm-text); border-color: var(--hm-border); } .hm-btn-secondary:hover { background: var(--hm-surface-hover); border-color: var(--hm-border-hover); } .hm-btn-accent { background: linear-gradient(135deg, var(--hm-accent), var(--hm-accent-hover)); color: white; box-shadow: var(--hm-shadow-md), var(--hm-glow-accent); } .hm-btn-accent:hover { transform: translateY(-2px); box-shadow: var(--hm-shadow-lg), 0 0 40px var(--hm-accent-glow); } .hm-btn-ghost { background: transparent; color: var(--hm-text-muted); } .hm-btn-ghost:hover { background: var(--hm-surface); color: var(--hm-text); } .hm-btn-outline { background: transparent; color: var(--hm-primary); border-color: var(--hm-primary); } .hm-btn-outline:hover { background: var(--hm-primary); color: white; } .hm-btn-success { background: var(--hm-success); color: white; } .hm-btn-success:hover { filter: brightness(1.1); } .hm-btn-danger { background: var(--hm-error); color: white; } .hm-btn-danger:hover { filter: brightness(1.1); } /* Button Sizes */ .hm-btn-xs { padding: var(--hm-space-1) var(--hm-space-2); font-size: var(--hm-text-xs); } .hm-btn-sm { padding: var(--hm-space-2) var(--hm-space-4); font-size: var(--hm-text-sm); } .hm-btn-lg { padding: var(--hm-space-4) var(--hm-space-8); font-size: var(--hm-text-lg); } .hm-btn-xl { padding: var(--hm-space-5) var(--hm-space-10); font-size: var(--hm-text-xl); } .hm-btn-block { width: 100%; } .hm-btn-icon { padding: var(--hm-space-3); aspect-ratio: 1; } .hm-btn-rounded { border-radius: var(--hm-radius-full); } /* ───────────────────────────────────────────────────────────────────────── INPUT COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-input-group { display: flex; flex-direction: column; gap: var(--hm-space-2); } .hm-label { font-size: var(--hm-text-sm); font-weight: var(--hm-font-medium); color: var(--hm-text); } .hm-label-required::after { content: " *"; color: var(--hm-primary); } .hm-input, .hm-select, .hm-textarea { width: 100%; padding: var(--hm-space-3) var(--hm-space-4); font-family: var(--hm-font-primary); font-size: var(--hm-text-base); color: var(--hm-text); background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-lg); transition: all var(--hm-transition-fast); } .hm-input::placeholder, .hm-textarea::placeholder { color: var(--hm-text-muted); } .hm-input:hover, .hm-select:hover, .hm-textarea:hover { border-color: var(--hm-border-hover); background: var(--hm-surface-hover); } .hm-input:focus, .hm-select:focus, .hm-textarea:focus { outline: none; border-color: var(--hm-primary); box-shadow: 0 0 0 3px var(--hm-primary-glow); background: var(--hm-surface); } .hm-input.error, .hm-input-error { border-color: var(--hm-error); } .hm-input.error:focus, .hm-input-error:focus { box-shadow: 0 0 0 3px var(--hm-error-bg); } .hm-input.success, .hm-input-success { border-color: var(--hm-success); } .hm-input-sm { padding: var(--hm-space-2) var(--hm-space-3); font-size: var(--hm-text-sm); } .hm-input-lg { padding: var(--hm-space-4) var(--hm-space-5); font-size: var(--hm-text-lg); } .hm-helper-text { font-size: var(--hm-text-xs); color: var(--hm-text-muted); } .hm-error-text { font-size: var(--hm-text-xs); color: var(--hm-error); } /* Input with Icon */ .hm-input-icon-wrapper { position: relative; } .hm-input-icon-wrapper .hm-input { padding-inline-start: var(--hm-space-10); } .hm-input-icon { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: var(--hm-space-4); color: var(--hm-text-muted); pointer-events: none; } /* ───────────────────────────────────────────────────────────────────────── SELECT COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left var(--hm-space-3) center; background-size: 16px; padding-inline-start: var(--hm-space-4); padding-inline-end: var(--hm-space-10); cursor: pointer; } [dir="ltr"] .hm-select { background-position: right var(--hm-space-3) center; } /* ───────────────────────────────────────────────────────────────────────── CARD COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-card { background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-xl); overflow: hidden; transition: all var(--hm-transition-normal); } .hm-card-hoverable:hover { border-color: var(--hm-border-hover); box-shadow: var(--hm-shadow-card-hover); transform: translateY(-4px); } .hm-card-header { padding: var(--hm-space-5) var(--hm-space-6); border-bottom: 1px solid var(--hm-border); } .hm-card-body { padding: var(--hm-space-6); } .hm-card-footer { padding: var(--hm-space-4) var(--hm-space-6); border-top: 1px solid var(--hm-border); background: var(--hm-surface-alt); } .hm-card-title { font-size: var(--hm-text-lg); font-weight: var(--hm-font-semibold); margin-bottom: var(--hm-space-1); } .hm-card-subtitle { font-size: var(--hm-text-sm); color: var(--hm-text-muted); } /* Card Variants */ .hm-card-glass { background: rgba(18, 18, 26, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); } .hm-card-gradient { background: linear-gradient(145deg, var(--hm-surface), var(--hm-surface-alt)); } .hm-card-glow { box-shadow: var(--hm-shadow-card), var(--hm-glow-primary); } /* ───────────────────────────────────────────────────────────────────────── MODAL COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: var(--hm-z-modal); display: flex; align-items: center; justify-content: center; padding: var(--hm-space-4); opacity: 0; visibility: hidden; transition: all var(--hm-transition-normal); } .hm-modal-overlay.open { opacity: 1; visibility: visible; } .hm-modal { background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-2xl); width: 100%; max-width: 500px; max-height: 90vh; overflow: hidden; box-shadow: var(--hm-shadow-modal); transform: scale(0.95) translateY(20px); transition: transform var(--hm-transition-normal); } .hm-modal-overlay.open .hm-modal { transform: scale(1) translateY(0); } .hm-modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--hm-space-5) var(--hm-space-6); border-bottom: 1px solid var(--hm-border); } .hm-modal-title { font-size: var(--hm-text-xl); font-weight: var(--hm-font-bold); } .hm-modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: var(--hm-radius-md); color: var(--hm-text-muted); cursor: pointer; transition: all var(--hm-transition-fast); } .hm-modal-close:hover { background: var(--hm-surface-hover); color: var(--hm-text); } .hm-modal-body { padding: var(--hm-space-6); overflow-y: auto; max-height: calc(90vh - 140px); } .hm-modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--hm-space-3); padding: var(--hm-space-4) var(--hm-space-6); border-top: 1px solid var(--hm-border); background: var(--hm-surface-alt); } /* Modal Sizes */ .hm-modal-sm { max-width: 400px; } .hm-modal-lg { max-width: 700px; } .hm-modal-xl { max-width: 900px; } .hm-modal-full { max-width: calc(100vw - 40px); max-height: calc(100vh - 40px); } /* ───────────────────────────────────────────────────────────────────────── DRAWER COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: var(--hm-z-drawer); opacity: 0; visibility: hidden; transition: all var(--hm-transition-normal); } .hm-drawer-overlay.open { opacity: 1; visibility: visible; } .hm-drawer { position: fixed; top: 0; bottom: 0; width: 320px; max-width: 90vw; background: var(--hm-surface); border-inline-start: 1px solid var(--hm-border); z-index: var(--hm-z-drawer); transition: transform var(--hm-transition-normal); display: flex; flex-direction: column; } /* RTL Drawer - comes from right */ [dir="rtl"] .hm-drawer, .hm-drawer-end { inset-inline-end: 0; transform: translateX(-100%); } [dir="rtl"] .hm-drawer.open, .hm-drawer-end.open { transform: translateX(0); } /* LTR Drawer - comes from left */ [dir="ltr"] .hm-drawer, .hm-drawer-start { inset-inline-start: 0; transform: translateX(100%); } [dir="ltr"] .hm-drawer.open, .hm-drawer-start.open { transform: translateX(0); } .hm-drawer-header { padding: var(--hm-space-5) var(--hm-space-5); border-bottom: 1px solid var(--hm-border); display: flex; align-items: center; justify-content: space-between; } .hm-drawer-body { flex: 1; overflow-y: auto; padding: var(--hm-space-5); } .hm-drawer-footer { padding: var(--hm-space-4) var(--hm-space-5); border-top: 1px solid var(--hm-border); background: var(--hm-surface-alt); } /* ───────────────────────────────────────────────────────────────────────── TOAST COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-toast-container { position: fixed; bottom: var(--hm-space-6); inset-inline-start: 50%; transform: translateX(50%); z-index: var(--hm-z-toast); display: flex; flex-direction: column; gap: var(--hm-space-3); pointer-events: none; } [dir="ltr"] .hm-toast-container { transform: translateX(-50%); } .hm-toast { display: flex; align-items: center; gap: var(--hm-space-3); padding: var(--hm-space-4) var(--hm-space-5); background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-xl); box-shadow: var(--hm-shadow-lg); min-width: 300px; max-width: 500px; pointer-events: auto; animation: hm-toast-in 0.3s var(--hm-ease-out); } .hm-toast.removing { animation: hm-toast-out 0.3s var(--hm-ease-in) forwards; } @keyframes hm-toast-in { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes hm-toast-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(20px) scale(0.95); } } .hm-toast-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: var(--hm-radius-full); flex-shrink: 0; } .hm-toast-content { flex: 1; } .hm-toast-title { font-weight: var(--hm-font-semibold); font-size: var(--hm-text-sm); } .hm-toast-message { font-size: var(--hm-text-sm); color: var(--hm-text-muted); } .hm-toast-close { background: transparent; border: none; color: var(--hm-text-muted); cursor: pointer; padding: var(--hm-space-1); border-radius: var(--hm-radius-sm); transition: all var(--hm-transition-fast); } .hm-toast-close:hover { background: var(--hm-surface-hover); color: var(--hm-text); } /* Toast Variants */ .hm-toast-success { border-color: var(--hm-success-border); background: linear-gradient(135deg, var(--hm-surface) 0%, var(--hm-success-bg) 100%); } .hm-toast-success .hm-toast-icon { background: var(--hm-success); color: white; } .hm-toast-error { border-color: var(--hm-error-border); background: linear-gradient(135deg, var(--hm-surface) 0%, var(--hm-error-bg) 100%); } .hm-toast-error .hm-toast-icon { background: var(--hm-error); color: white; } .hm-toast-warning { border-color: var(--hm-warning-border); background: linear-gradient(135deg, var(--hm-surface) 0%, var(--hm-warning-bg) 100%); } .hm-toast-warning .hm-toast-icon { background: var(--hm-warning); color: white; } .hm-toast-info { border-color: var(--hm-info-border); background: linear-gradient(135deg, var(--hm-surface) 0%, var(--hm-info-bg) 100%); } .hm-toast-info .hm-toast-icon { background: var(--hm-info); color: white; } /* ───────────────────────────────────────────────────────────────────────── BADGE COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-badge { display: inline-flex; align-items: center; gap: var(--hm-space-1); padding: var(--hm-space-1) var(--hm-space-3); font-size: var(--hm-text-xs); font-weight: var(--hm-font-semibold); border-radius: var(--hm-radius-full); white-space: nowrap; } .hm-badge-primary { background: var(--hm-primary-glow); color: var(--hm-primary-light); border: 1px solid var(--hm-primary); } .hm-badge-secondary { background: var(--hm-surface-alt); color: var(--hm-text-muted); border: 1px solid var(--hm-border); } .hm-badge-success { background: var(--hm-success-bg); color: var(--hm-success); border: 1px solid var(--hm-success-border); } .hm-badge-warning { background: var(--hm-warning-bg); color: var(--hm-warning); border: 1px solid var(--hm-warning-border); } .hm-badge-error { background: var(--hm-error-bg); color: var(--hm-error); border: 1px solid var(--hm-error-border); } .hm-badge-gold { background: var(--hm-gold-glow); color: var(--hm-gold); border: 1px solid var(--hm-gold); } /* Badge with dot */ .hm-badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; } /* ───────────────────────────────────────────────────────────────────────── TABS COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-tabs { display: flex; gap: var(--hm-space-1); border-bottom: 1px solid var(--hm-border); padding-bottom: 1px; overflow-x: auto; } .hm-tab { padding: var(--hm-space-3) var(--hm-space-5); font-size: var(--hm-text-sm); font-weight: var(--hm-font-medium); color: var(--hm-text-muted); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--hm-transition-fast); white-space: nowrap; } .hm-tab:hover { color: var(--hm-text); background: var(--hm-surface-hover); } .hm-tab.active { color: var(--hm-primary); border-bottom-color: var(--hm-primary); } .hm-tab-panel { display: none; padding: var(--hm-space-5) 0; } .hm-tab-panel.active { display: block; } /* Pills Variant */ .hm-tabs-pills { border-bottom: none; background: var(--hm-surface); padding: var(--hm-space-1); border-radius: var(--hm-radius-lg); } .hm-tabs-pills .hm-tab { border-radius: var(--hm-radius-md); border-bottom: none; } .hm-tabs-pills .hm-tab.active { background: var(--hm-primary); color: white; } /* ───────────────────────────────────────────────────────────────────────── TABLE COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-table-wrapper { overflow-x: auto; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-xl); } .hm-table { width: 100%; border-collapse: collapse; font-size: var(--hm-text-sm); } .hm-table th, .hm-table td { padding: var(--hm-space-4) var(--hm-space-5); text-align: start; } .hm-table th { background: var(--hm-surface-alt); font-weight: var(--hm-font-semibold); color: var(--hm-text-muted); text-transform: uppercase; font-size: var(--hm-text-xs); letter-spacing: var(--hm-tracking-wide); border-bottom: 1px solid var(--hm-border); } .hm-table td { border-bottom: 1px solid var(--hm-border); } .hm-table tr:last-child td { border-bottom: none; } .hm-table tbody tr { transition: background var(--hm-transition-fast); } .hm-table tbody tr:hover { background: var(--hm-surface-hover); } /* Striped Variant */ .hm-table-striped tbody tr:nth-child(even) { background: var(--hm-surface-alt); } /* ───────────────────────────────────────────────────────────────────────── SKELETON COMPONENT ───────────────────────────────────────────────────────────────────────── */ .hm-skeleton { background: linear-gradient( 90deg, var(--hm-surface) 25%, var(--hm-surface-hover) 50%, var(--hm-surface) 75% ); background-size: 200% 100%; animation: hm-skeleton-pulse 1.5s ease-in-out infinite; border-radius: var(--hm-radius-md); } @keyframes hm-skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } .hm-skeleton-text { height: 1em; margin-bottom: var(--hm-space-2); } .hm-skeleton-title { height: 1.5em; width: 60%; margin-bottom: var(--hm-space-3); } .hm-skeleton-avatar { width: 48px; height: 48px; border-radius: var(--hm-radius-full); } .hm-skeleton-image { width: 100%; aspect-ratio: 16/9; border-radius: var(--hm-radius-lg); } .hm-skeleton-card { height: 200px; border-radius: var(--hm-radius-xl); } /* ───────────────────────────────────────────────────────────────────────── CHECKBOX & RADIO ───────────────────────────────────────────────────────────────────────── */ .hm-checkbox-wrapper, .hm-radio-wrapper { display: flex; align-items: center; gap: var(--hm-space-3); cursor: pointer; } .hm-checkbox, .hm-radio { appearance: none; width: 20px; height: 20px; background: var(--hm-surface); border: 2px solid var(--hm-border-hover); cursor: pointer; transition: all var(--hm-transition-fast); flex-shrink: 0; } .hm-checkbox { border-radius: var(--hm-radius-sm); } .hm-radio { border-radius: var(--hm-radius-full); } .hm-checkbox:checked, .hm-radio:checked { background: var(--hm-primary); border-color: var(--hm-primary); } .hm-checkbox:checked::after { content: "✓"; display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: bold; } .hm-radio:checked::after { content: ""; display: block; width: 8px; height: 8px; margin: 4px; background: white; border-radius: 50%; } .hm-checkbox:focus, .hm-radio:focus { outline: none; box-shadow: 0 0 0 3px var(--hm-primary-glow); } /* ───────────────────────────────────────────────────────────────────────── SWITCH/TOGGLE ───────────────────────────────────────────────────────────────────────── */ .hm-switch { position: relative; display: inline-block; width: 48px; height: 26px; } .hm-switch input { opacity: 0; width: 0; height: 0; } .hm-switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--hm-surface-alt); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-full); transition: all var(--hm-transition-fast); } .hm-switch-slider::before { content: ""; position: absolute; height: 20px; width: 20px; inset-inline-start: 2px; bottom: 2px; background: white; border-radius: var(--hm-radius-full); transition: all var(--hm-transition-fast); box-shadow: var(--hm-shadow-sm); } .hm-switch input:checked + .hm-switch-slider { background: var(--hm-primary); border-color: var(--hm-primary); } .hm-switch input:checked + .hm-switch-slider::before { transform: translateX(-22px); } [dir="ltr"] .hm-switch input:checked + .hm-switch-slider::before { transform: translateX(22px); } .hm-switch input:focus + .hm-switch-slider { box-shadow: 0 0 0 3px var(--hm-primary-glow); } /* ═══════════════════════════════════════════════════════════════════════════ 4. UTILITIES ═══════════════════════════════════════════════════════════════════════════ */ /* Display */ .hm-hidden { display: none !important; } .hm-block { display: block; } .hm-inline { display: inline; } .hm-inline-block { display: inline-block; } .hm-flex { display: flex; } .hm-inline-flex { display: inline-flex; } .hm-grid { display: grid; } /* Flex */ .hm-flex-row { flex-direction: row; } .hm-flex-col { flex-direction: column; } .hm-flex-wrap { flex-wrap: wrap; } .hm-items-start { align-items: flex-start; } .hm-items-center { align-items: center; } .hm-items-end { align-items: flex-end; } .hm-justify-start { justify-content: flex-start; } .hm-justify-center { justify-content: center; } .hm-justify-end { justify-content: flex-end; } .hm-justify-between { justify-content: space-between; } .hm-gap-1 { gap: var(--hm-space-1); } .hm-gap-2 { gap: var(--hm-space-2); } .hm-gap-3 { gap: var(--hm-space-3); } .hm-gap-4 { gap: var(--hm-space-4); } .hm-gap-5 { gap: var(--hm-space-5); } .hm-gap-6 { gap: var(--hm-space-6); } .hm-gap-8 { gap: var(--hm-space-8); } /* Grid */ .hm-grid-2 { grid-template-columns: repeat(2, 1fr); } .hm-grid-3 { grid-template-columns: repeat(3, 1fr); } .hm-grid-4 { grid-template-columns: repeat(4, 1fr); } /* Spacing */ .hm-p-0 { padding: var(--hm-space-0); } .hm-p-1 { padding: var(--hm-space-1); } .hm-p-2 { padding: var(--hm-space-2); } .hm-p-3 { padding: var(--hm-space-3); } .hm-p-4 { padding: var(--hm-space-4); } .hm-p-5 { padding: var(--hm-space-5); } .hm-p-6 { padding: var(--hm-space-6); } .hm-p-8 { padding: var(--hm-space-8); } .hm-m-0 { margin: var(--hm-space-0); } .hm-m-auto { margin: auto; } .hm-mx-auto { margin-inline: auto; } .hm-mb-2 { margin-bottom: var(--hm-space-2); } .hm-mb-3 { margin-bottom: var(--hm-space-3); } .hm-mb-4 { margin-bottom: var(--hm-space-4); } .hm-mb-6 { margin-bottom: var(--hm-space-6); } .hm-mt-4 { margin-top: var(--hm-space-4); } .hm-mt-6 { margin-top: var(--hm-space-6); } /* Width/Height */ .hm-w-full { width: 100%; } .hm-h-full { height: 100%; } .hm-min-h-screen { min-height: 100vh; } /* Text Alignment */ .hm-text-start { text-align: start; } .hm-text-center { text-align: center; } .hm-text-end { text-align: end; } /* Overflow */ .hm-overflow-hidden { overflow: hidden; } .hm-overflow-auto { overflow: auto; } .hm-overflow-x-auto { overflow-x: auto; } /* Position */ .hm-relative { position: relative; } .hm-absolute { position: absolute; } .hm-fixed { position: fixed; } .hm-sticky { position: sticky; } /* Border */ .hm-border { border: 1px solid var(--hm-border); } .hm-border-t { border-top: 1px solid var(--hm-border); } .hm-border-b { border-bottom: 1px solid var(--hm-border); } .hm-rounded { border-radius: var(--hm-radius-md); } .hm-rounded-lg { border-radius: var(--hm-radius-lg); } .hm-rounded-xl { border-radius: var(--hm-radius-xl); } .hm-rounded-full { border-radius: var(--hm-radius-full); } /* Shadow */ .hm-shadow { box-shadow: var(--hm-shadow-md); } .hm-shadow-lg { box-shadow: var(--hm-shadow-lg); } /* Opacity */ .hm-opacity-50 { opacity: 0.5; } .hm-opacity-75 { opacity: 0.75; } /* Cursor */ .hm-cursor-pointer { cursor: pointer; } .hm-cursor-not-allowed { cursor: not-allowed; } /* Transitions */ .hm-transition { transition: all var(--hm-transition-normal); } .hm-transition-fast { transition: all var(--hm-transition-fast); } /* ═══════════════════════════════════════════════════════════════════════════ 5. RTL/LTR SUPPORT ═══════════════════════════════════════════════════════════════════════════ */ [dir="rtl"] { direction: rtl; text-align: right; } [dir="ltr"] { direction: ltr; text-align: left; } /* Logical properties are used throughout, but here are some helpers */ .hm-flip-x { transform: scaleX(-1); } [dir="ltr"] .hm-flip-x { transform: scaleX(1); } /* ═══════════════════════════════════════════════════════════════════════════ 6. ANIMATIONS ═══════════════════════════════════════════════════════════════════════════ */ @keyframes hm-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes hm-fade-out { from { opacity: 1; } to { opacity: 0; } } @keyframes hm-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes hm-slide-down { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes hm-scale-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } } @keyframes hm-spin { to { transform: rotate(360deg); } } @keyframes hm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } @keyframes hm-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } @keyframes hm-gradient-move { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } .hm-animate-fade-in { animation: hm-fade-in var(--hm-duration-normal) var(--hm-ease-out); } .hm-animate-slide-up { animation: hm-slide-up var(--hm-duration-normal) var(--hm-ease-out); } .hm-animate-scale-in { animation: hm-scale-in var(--hm-duration-normal) var(--hm-ease-out); } .hm-animate-spin { animation: hm-spin 1s linear infinite; } .hm-animate-pulse { animation: hm-pulse 2s ease-in-out infinite; } .hm-animate-bounce { animation: hm-bounce 1s ease-in-out infinite; } /* ═══════════════════════════════════════════════════════════════════════════ 7. RESPONSIVE HELPERS ═══════════════════════════════════════════════════════════════════════════ */ @media (max-width: 640px) { .hm-sm-hidden { display: none !important; } .hm-sm-block { display: block !important; } .hm-sm-flex-col { flex-direction: column !important; } .hm-sm-w-full { width: 100% !important; } .hm-sm-text-sm { font-size: var(--hm-text-sm) !important; } .hm-grid-2, .hm-grid-3, .hm-grid-4 { grid-template-columns: 1fr; } } @media (min-width: 641px) and (max-width: 1024px) { .hm-md-hidden { display: none !important; } .hm-md-block { display: block !important; } .hm-grid-3, .hm-grid-4 { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1025px) { .hm-lg-hidden { display: none !important; } .hm-lg-block { display: block !important; } } /* ═══════════════════════════════════════════════════════════════════════════ 8. PRINT STYLES ═══════════════════════════════════════════════════════════════════════════ */ @media print { .hm-no-print { display: none !important; } body { background: white; color: black; } .hm-card { box-shadow: none; border: 1px solid #ccc; } } /* ═══════════════════════════════════════════════════════════════════════════ 9. ADAPTER LAYER - Legacy Compatibility Applies Design System styles to existing elements without requiring class name changes in HTML. ═══════════════════════════════════════════════════════════════════════════ */ /* ───────────────────────────────────────────────────────────────────────── BUTTONS ADAPTER Applies to: button, .btn, [type="submit"], [type="button"], .button ───────────────────────────────────────────────────────────────────────── */ button:not([class*="hm-"]):not(.no-adapter), .btn:not([class*="hm-"]):not(.no-adapter), input[type="submit"]:not([class*="hm-"]):not(.no-adapter), input[type="button"]:not([class*="hm-"]):not(.no-adapter), .button:not([class*="hm-"]):not(.no-adapter) { display: inline-flex; align-items: center; justify-content: center; gap: var(--hm-space-2); padding: var(--hm-space-3) var(--hm-space-5); font-family: var(--hm-font-primary); font-size: var(--hm-text-sm); font-weight: 600; line-height: 1.4; text-decoration: none; border-radius: var(--hm-radius-lg); border: 1px solid transparent; cursor: pointer; transition: all var(--hm-duration-fast) var(--hm-ease-out); white-space: nowrap; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-hover)); color: white; box-shadow: 0 4px 15px var(--hm-primary-glow); } button:not([class*="hm-"]):not(.no-adapter):hover, .btn:not([class*="hm-"]):not(.no-adapter):hover, input[type="submit"]:not([class*="hm-"]):not(.no-adapter):hover, input[type="button"]:not([class*="hm-"]):not(.no-adapter):hover, .button:not([class*="hm-"]):not(.no-adapter):hover { background: linear-gradient(135deg, var(--hm-primary-hover), var(--hm-primary-active)); transform: translateY(-2px); box-shadow: 0 6px 25px var(--hm-primary-glow); } button:not([class*="hm-"]):not(.no-adapter):active, .btn:not([class*="hm-"]):not(.no-adapter):active, input[type="submit"]:not([class*="hm-"]):not(.no-adapter):active, input[type="button"]:not([class*="hm-"]):not(.no-adapter):active, .button:not([class*="hm-"]):not(.no-adapter):active { transform: translateY(0); } button:not([class*="hm-"]):not(.no-adapter):focus-visible, .btn:not([class*="hm-"]):not(.no-adapter):focus-visible, input[type="submit"]:not([class*="hm-"]):not(.no-adapter):focus-visible, input[type="button"]:not([class*="hm-"]):not(.no-adapter):focus-visible, .button:not([class*="hm-"]):not(.no-adapter):focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; } button:disabled:not([class*="hm-"]), .btn:disabled:not([class*="hm-"]), input[type="submit"]:disabled:not([class*="hm-"]), button.disabled:not([class*="hm-"]), .btn.disabled:not([class*="hm-"]) { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; } /* Secondary Buttons */ .btn-secondary:not([class*="hm-"]):not(.no-adapter), button.secondary:not([class*="hm-"]):not(.no-adapter) { background: var(--hm-surface); color: var(--hm-text); border: 1px solid var(--hm-border); box-shadow: 0 2px 10px rgba(0,0,0,0.2); } .btn-secondary:not([class*="hm-"]):not(.no-adapter):hover, button.secondary:not([class*="hm-"]):not(.no-adapter):hover { background: var(--hm-surface-hover); border-color: var(--hm-border-hover); } /* Outline Buttons */ .btn-outline:not([class*="hm-"]):not(.no-adapter), button.outline:not([class*="hm-"]):not(.no-adapter) { background: transparent; color: var(--hm-primary); border: 2px solid var(--hm-primary); box-shadow: none; } .btn-outline:not([class*="hm-"]):not(.no-adapter):hover, button.outline:not([class*="hm-"]):not(.no-adapter):hover { background: var(--hm-primary); color: white; } /* ───────────────────────────────────────────────────────────────────────── INPUTS ADAPTER Applies to: input, select, textarea, .input, .form-input, .form-control ───────────────────────────────────────────────────────────────────────── */ input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([class*="hm-"]):not(.no-adapter), select:not([class*="hm-"]):not(.no-adapter), textarea:not([class*="hm-"]):not(.no-adapter), .input:not([class*="hm-"]):not(.no-adapter), .form-input:not([class*="hm-"]):not(.no-adapter), .form-control:not([class*="hm-"]):not(.no-adapter) { width: 100%; padding: var(--hm-space-3) var(--hm-space-4); font-family: var(--hm-font-primary); font-size: var(--hm-text-base); line-height: 1.5; color: var(--hm-text); background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-lg); transition: all var(--hm-duration-fast) var(--hm-ease-out); appearance: none; } input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([class*="hm-"]):not(.no-adapter):hover, select:not([class*="hm-"]):not(.no-adapter):hover, textarea:not([class*="hm-"]):not(.no-adapter):hover, .input:not([class*="hm-"]):not(.no-adapter):hover, .form-input:not([class*="hm-"]):not(.no-adapter):hover, .form-control:not([class*="hm-"]):not(.no-adapter):hover { border-color: var(--hm-border-hover); background: var(--hm-surface-hover); } input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([class*="hm-"]):not(.no-adapter):focus, select:not([class*="hm-"]):not(.no-adapter):focus, textarea:not([class*="hm-"]):not(.no-adapter):focus, .input:not([class*="hm-"]):not(.no-adapter):focus, .form-input:not([class*="hm-"]):not(.no-adapter):focus, .form-control:not([class*="hm-"]):not(.no-adapter):focus { outline: none; border-color: var(--hm-primary); box-shadow: 0 0 0 3px var(--hm-primary-glow); background: var(--hm-bg-elevated); } input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([class*="hm-"]):not(.no-adapter)::placeholder, textarea:not([class*="hm-"]):not(.no-adapter)::placeholder { color: var(--hm-text-muted); } /* Select with arrow */ select:not([class*="hm-"]):not(.no-adapter) { padding-left: var(--hm-space-10); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left var(--hm-space-3) center; background-size: 20px; cursor: pointer; } [dir="ltr"] select:not([class*="hm-"]):not(.no-adapter) { padding-left: var(--hm-space-4); padding-right: var(--hm-space-10); background-position: right var(--hm-space-3) center; } /* Textarea */ textarea:not([class*="hm-"]):not(.no-adapter) { min-height: 100px; resize: vertical; } /* ───────────────────────────────────────────────────────────────────────── CHECKBOX & RADIO ADAPTER ───────────────────────────────────────────────────────────────────────── */ input[type="checkbox"]:not([class*="hm-"]):not(.no-adapter), input[type="radio"]:not([class*="hm-"]):not(.no-adapter) { width: 20px; height: 20px; margin: 0; cursor: pointer; appearance: none; background: var(--hm-surface); border: 2px solid var(--hm-border); transition: all var(--hm-duration-fast) var(--hm-ease-out); } input[type="checkbox"]:not([class*="hm-"]):not(.no-adapter) { border-radius: var(--hm-radius-sm); } input[type="radio"]:not([class*="hm-"]):not(.no-adapter) { border-radius: 50%; } input[type="checkbox"]:not([class*="hm-"]):not(.no-adapter):checked, input[type="radio"]:not([class*="hm-"]):not(.no-adapter):checked { background: var(--hm-primary); border-color: var(--hm-primary); } input[type="checkbox"]:not([class*="hm-"]):not(.no-adapter):checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; } input[type="radio"]:not([class*="hm-"]):not(.no-adapter):checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6' fill='white'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; } input[type="checkbox"]:not([class*="hm-"]):not(.no-adapter):focus, input[type="radio"]:not([class*="hm-"]):not(.no-adapter):focus { outline: none; box-shadow: 0 0 0 3px var(--hm-primary-glow); } /* ───────────────────────────────────────────────────────────────────────── CARDS ADAPTER Applies to: .card, .panel, .box, [class*="card"] ───────────────────────────────────────────────────────────────────────── */ .card:not([class*="hm-"]):not(.no-adapter), .panel:not([class*="hm-"]):not(.no-adapter), .box:not([class*="hm-"]):not(.no-adapter), [class*="product-card"]:not([class*="hm-"]):not(.no-adapter) { background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-xl); padding: var(--hm-space-5); transition: all var(--hm-duration-normal) var(--hm-ease-out); } .card:not([class*="hm-"]):not(.no-adapter):hover, .panel:not([class*="hm-"]):not(.no-adapter):hover, [class*="product-card"]:not([class*="hm-"]):not(.no-adapter):hover { border-color: var(--hm-border-hover); transform: translateY(-2px); box-shadow: var(--hm-shadow-lg); } /* ───────────────────────────────────────────────────────────────────────── FORM GROUPS ADAPTER ───────────────────────────────────────────────────────────────────────── */ .form-group:not([class*="hm-"]):not(.no-adapter) { margin-bottom: var(--hm-space-5); } .form-group:not([class*="hm-"]):not(.no-adapter) label, .form-label:not([class*="hm-"]):not(.no-adapter), label:not([class*="hm-"]):not(.no-adapter) { display: block; margin-bottom: var(--hm-space-2); font-size: var(--hm-text-sm); font-weight: 500; color: var(--hm-text-secondary); } /* ───────────────────────────────────────────────────────────────────────── BADGES & TAGS ADAPTER ───────────────────────────────────────────────────────────────────────── */ .badge:not([class*="hm-"]):not(.no-adapter), .tag:not([class*="hm-"]):not(.no-adapter), .label:not([class*="hm-"]):not(.no-adapter):not(label) { display: inline-flex; align-items: center; gap: var(--hm-space-1); padding: var(--hm-space-1) var(--hm-space-3); font-size: var(--hm-text-xs); font-weight: 600; border-radius: var(--hm-radius-full); background: var(--hm-primary-glow); color: var(--hm-primary-light); border: 1px solid rgba(225, 29, 72, 0.3); } .badge.success:not([class*="hm-"]), .tag.success:not([class*="hm-"]) { background: var(--hm-success-bg); color: var(--hm-success); border-color: var(--hm-success-border); } .badge.warning:not([class*="hm-"]), .tag.warning:not([class*="hm-"]) { background: var(--hm-warning-bg); color: var(--hm-warning); border-color: var(--hm-warning-border); } .badge.error:not([class*="hm-"]), .tag.error:not([class*="hm-"]) { background: var(--hm-error-bg); color: var(--hm-error); border-color: var(--hm-error-border); } /* ───────────────────────────────────────────────────────────────────────── HEADER ADAPTER ───────────────────────────────────────────────────────────────────────── */ header:not([class*="hm-"]):not(.no-adapter), .header:not([class*="hm-"]):not(.no-adapter), nav:not([class*="hm-"]):not(.no-adapter) { background: rgba(5, 5, 9, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--hm-border); } /* ───────────────────────────────────────────────────────────────────────── MODAL & DIALOG ADAPTER ───────────────────────────────────────────────────────────────────────── */ .modal:not([class*="hm-"]):not(.no-adapter), .dialog:not([class*="hm-"]):not(.no-adapter), [role="dialog"]:not([class*="hm-"]):not(.no-adapter) { background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-2xl); box-shadow: var(--hm-shadow-2xl); } .modal-overlay:not([class*="hm-"]):not(.no-adapter), .dialog-overlay:not([class*="hm-"]):not(.no-adapter) { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } /* ───────────────────────────────────────────────────────────────────────── TABLES ADAPTER ───────────────────────────────────────────────────────────────────────── */ table:not([class*="hm-"]):not(.no-adapter) { width: 100%; border-collapse: collapse; font-size: var(--hm-text-sm); } table:not([class*="hm-"]):not(.no-adapter) th, table:not([class*="hm-"]):not(.no-adapter) td { padding: var(--hm-space-3) var(--hm-space-4); text-align: right; border-bottom: 1px solid var(--hm-border); } [dir="ltr"] table:not([class*="hm-"]):not(.no-adapter) th, [dir="ltr"] table:not([class*="hm-"]):not(.no-adapter) td { text-align: left; } table:not([class*="hm-"]):not(.no-adapter) th { font-weight: 600; color: var(--hm-text-secondary); background: var(--hm-surface); } table:not([class*="hm-"]):not(.no-adapter) tr:hover { background: var(--hm-surface-hover); } /* ───────────────────────────────────────────────────────────────────────── LINKS ADAPTER ───────────────────────────────────────────────────────────────────────── */ a:not([class*="hm-"]):not(.no-adapter):not(.btn):not(.button):not([class*="nav"]) { color: var(--hm-primary-light); text-decoration: none; transition: color var(--hm-duration-fast) var(--hm-ease-out); } a:not([class*="hm-"]):not(.no-adapter):not(.btn):not(.button):not([class*="nav"]):hover { color: var(--hm-primary); text-decoration: underline; } /* ─────────────────────────────────────════════════════════════════════════ SCROLLBAR ADAPTER (Global) ═══════════════════════════════════════════════════════════════════════════ */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--hm-bg); } ::-webkit-scrollbar-thumb { background: var(--hm-surface-active); border-radius: var(--hm-radius-full); } ::-webkit-scrollbar-thumb:hover { background: var(--hm-text-muted); } /* ═══════════════════════════════════════════════════════════════════════════ END OF DESIGN SYSTEM ═══════════════════════════════════════════════════════════════════════════ */