/* ═══════════════════════════════════════════════════════
   EASY PHARMA CRM — Design System
   ═══════════════════════════════════════════════════════ */

:root {
    --ep-red: #DC2626;
    --ep-red-dark: #991B1B;
    --ep-red-light: #FEE2E2;
    --ep-bg: #F8F9FB;
    --ep-card: #FFFFFF;
    --ep-border: #E5E7EB;
    --ep-text: #111827;
    --ep-text-secondary: #6B7280;
    --ep-text-muted: #9CA3AF;
    --ep-radius: 16px;
    --ep-radius-sm: 12px;
    --ep-radius-lg: 20px;
    --ep-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ep-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --ep-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --ep-sidebar-w: 240px;
    --ep-sidebar-bg: linear-gradient(180deg, #7F1D1D 0%, #991B1B 50%, #B91C1C 100%);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ep-bg);
    color: var(--ep-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; }

/* ── Sidebar ──────────────────────────────────────────── */
.ep-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--ep-sidebar-w);
    background: var(--ep-sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
}
.ep-sidebar-logo {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ep-sidebar-logo .logo-icon {
    width: 40px; height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-red);
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}
.ep-sidebar-logo .logo-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.ep-sidebar-logo .logo-text small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ep-sidebar-nav {
    flex: 1;
    padding: 12px 10px;
}
.ep-sidebar-section {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.45);
    padding: 16px 12px 6px;
}
.ep-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--ep-radius-sm);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    position: relative;
}
.ep-sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.ep-sidebar-link.active {
    background: rgba(255,255,255,0.18);
    color: white;
    font-weight: 600;
}
.ep-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}
.ep-sidebar-badge {
    margin-left: auto;
    background: white;
    color: var(--ep-red);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}
.ep-sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
}
.ep-sidebar-user .avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.ep-sidebar-user .user-info {
    flex: 1;
    min-width: 0;
}
.ep-sidebar-user .user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-sidebar-user .user-role {
    font-size: 11px;
    opacity: 0.6;
}

/* ── Main Content ─────────────────────────────────────── */
.ep-main {
    margin-left: var(--ep-sidebar-w);
    min-height: 100vh;
    padding: 24px 28px;
}
.ep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.ep-header h1 {
    font-size: 22px;
    font-weight: 700;
}
.ep-header .subtitle {
    font-size: 13px;
    color: var(--ep-text-secondary);
    margin-top: 2px;
}

/* ── Cards ────────────────────────────────────────────── */
.ep-card {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    border: 1px solid var(--ep-border);
    box-shadow: var(--ep-shadow);
    overflow: hidden;
}
.ep-card-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ep-card-header h2 {
    font-size: 16px;
    font-weight: 700;
}
.ep-card-body { padding: 20px 24px; }
.ep-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ep-border);
}

/* ── Stat Cards ───────────────────────────────────────── */
.ep-stat {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    border: 1px solid var(--ep-border);
    padding: 20px;
    box-shadow: var(--ep-shadow);
}
.ep-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ep-text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ep-stat-label i {
    font-size: 14px;
}
.ep-stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}
.ep-stat-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}
.ep-stat-change.up { color: #16A34A; }
.ep-stat-change.down { color: #DC2626; }

/* ── Buttons ──────────────────────────────────────────── */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--ep-radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.ep-btn-primary {
    background: var(--ep-red);
    color: white;
}
.ep-btn-primary:hover { background: var(--ep-red-dark); }
.ep-btn-dark {
    background: #111827;
    color: white;
}
.ep-btn-dark:hover { background: #1F2937; }
.ep-btn-outline {
    background: white;
    color: var(--ep-text);
    border: 1px solid var(--ep-border);
}
.ep-btn-outline:hover { background: #F9FAFB; }
.ep-btn-ghost {
    background: transparent;
    color: var(--ep-text-secondary);
}
.ep-btn-ghost:hover { background: #F3F4F6; }
.ep-btn-danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
.ep-btn-danger:hover { background: #FEE2E2; }

/* ── Badges ───────────────────────────────────────────── */
.ep-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.ep-badge-green { background: #DCFCE7; color: #166534; }
.ep-badge-red { background: #FEE2E2; color: #991B1B; }
.ep-badge-amber { background: #FEF3C7; color: #92400E; }
.ep-badge-blue { background: #DBEAFE; color: #1E40AF; }
.ep-badge-purple { background: #F3E8FF; color: #6B21A8; }
.ep-badge-slate { background: #F1F5F9; color: #475569; }

/* ── Inputs ───────────────────────────────────────────── */
.ep-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--ep-radius-sm);
    border: 1px solid var(--ep-border);
    font-size: 13px;
    font-family: inherit;
    background: white;
    color: var(--ep-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ep-input:focus {
    outline: none;
    border-color: var(--ep-red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.ep-input::placeholder { color: var(--ep-text-muted); }
.ep-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-text-secondary);
    margin-bottom: 6px;
}
.ep-select {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--ep-radius-sm);
    border: 1px solid var(--ep-border);
    font-size: 13px;
    font-family: inherit;
    background: white;
    color: var(--ep-text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── Tabs ─────────────────────────────────────────────── */
.ep-tabs {
    display: flex;
    gap: 4px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: var(--ep-radius-sm);
}
.ep-tab {
    flex: 1;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
    color: var(--ep-text-secondary);
}
.ep-tab:hover { color: var(--ep-text); }
.ep-tab.active {
    background: white;
    color: var(--ep-text);
    box-shadow: var(--ep-shadow);
}

/* ── Conversation List ────────────────────────────────── */
.ep-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: background 0.12s;
}
.ep-conv-item:hover { background: #F9FAFB; }
.ep-conv-item.active { background: #FEF2F2; border-left: 3px solid var(--ep-red); }
.ep-conv-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--ep-red-light);
    color: var(--ep-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.ep-conv-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-conv-preview {
    font-size: 12px;
    color: var(--ep-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.ep-conv-time {
    font-size: 11px;
    color: var(--ep-text-muted);
    margin-left: auto;
    flex-shrink: 0;
}
.ep-conv-badge {
    background: var(--ep-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── Chat Messages ────────────────────────────────────── */
.ep-msg {
    max-width: 75%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.ep-msg-client {
    background: white;
    border: 1px solid #E5E7EB;
    border-bottom-left-radius: 4px;
    margin-right: auto;
}
.ep-msg-agent {
    background: var(--ep-red);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}
.ep-msg-bot {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    margin-right: auto;
}
.ep-msg-system {
    background: #F8F9FB;
    border: 1px dashed #D1D5DB;
    font-size: 12px;
    color: var(--ep-text-secondary);
    text-align: center;
    max-width: 90%;
    margin: 8px auto;
}
.ep-msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

/* ── Modal ────────────────────────────────────────────── */
.ep-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ep-modal {
    background: white;
    border-radius: var(--ep-radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.ep-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ep-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ep-modal-header h2 { font-size: 18px; font-weight: 700; }
.ep-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.ep-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ep-border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Toast ────────────────────────────────────────────── */
.ep-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    background: #111827;
    color: white;
    padding: 12px 20px;
    border-radius: var(--ep-radius-sm);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--ep-shadow-lg);
    transform: translateY(12px);
    opacity: 0;
    transition: all 0.25s;
    pointer-events: none;
}
.ep-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── Tables ───────────────────────────────────────────── */
.ep-table {
    width: 100%;
    border-collapse: collapse;
}
.ep-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ep-text-secondary);
    border-bottom: 1px solid var(--ep-border);
}
.ep-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #F3F4F6;
}
.ep-table tr:hover td { background: #F9FAFB; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ep-sidebar { display: none; }
    .ep-main { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES (replaces Tailwind CDN)
   ═══════════════════════════════════════════════════════ */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.col-span-2 { grid-column: span 2 / span 2; }

/* Spacing */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.-mt-1 { margin-top: -4px; }
.-mt-2 { margin-top: -8px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }
.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: 8px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }

/* Sizing */
.w-full { width: 100%; }
.w-3 { width: 12px; }
.w-4 { width: 16px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-7 { width: 28px; }
.w-8 { width: 32px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-14 { width: 56px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.h-3 { height: 12px; }
.h-4 { height: 16px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-7 { height: 28px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-14 { height: 56px; }
.h-16 { height: 64px; }
.min-h-\\[80px\\] { min-height: 80px; }
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-6xl { max-width: 1152px; }
.max-w-7xl { max-width: 1280px; }
.max-w-none { max-width: none; }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 13px; line-height: 18px; }
.text-base { font-size: 14px; line-height: 20px; }
.text-lg { font-size: 16px; line-height: 24px; }
.text-xl { font-size: 18px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.whitespace-nowrap { white-space: nowrap; }
.break-words { overflow-wrap: break-word; word-break: break-word; }
.decoration-slice { -webkit-box-decoration-break: slice; box-decoration-break: slice; }

/* Colors */
.text-white { color: white; }
.text-black { color: black; }
.text-slate-400 { color: #94A3B8; }
.text-slate-500 { color: #64748B; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1E293B; }
.text-slate-900 { color: #0F172A; }
.text-red-500 { color: #EF4444; }
.text-red-600 { color: #DC2626; }
.text-red-700 { color: #B91C1C; }
.text-green-600 { color: #16A34A; }
.text-green-700 { color: #15803D; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-blue-600 { color: #2563EB; }
.text-blue-700 { color: #1D4ED8; }
.text-amber-600 { color: #D97706; }
.text-amber-700 { color: #B45309; }
.text-violet-600 { color: #7C3AED; }
.text-violet-700 { color: #6D28D9; }
.text-rose-600 { color: #E11D48; }
.text-rose-700 { color: #BE123C; }

/* Backgrounds */
.bg-white { background: white; }
.bg-black { background: black; }
.bg-transparent { background: transparent; }
.bg-slate-50 { background: #F8FAFC; }
.bg-slate-100 { background: #F1F5F9; }
.bg-slate-200 { background: #E2E8F0; }
.bg-slate-800 { background: #1E293B; }
.bg-slate-900 { background: #0F172A; }
.bg-red-50 { background: #FEF2F2; }
.bg-red-100 { background: #FEE2E2; }
.bg-green-50 { background: #F0FDF4; }
.bg-green-100 { background: #DCFCE7; }
.bg-emerald-50 { background: #ECFDF5; }
.bg-emerald-100 { background: #D1FAE5; }
.bg-blue-50 { background: #EFF6FF; }
.bg-blue-100 { background: #DBEAFE; }
.bg-amber-50 { background: #FFFBEB; }
.bg-amber-100 { background: #FEF3C7; }
.bg-violet-50 { background: #F5F3FF; }
.bg-violet-100 { background: #EDE9FE; }
.bg-rose-50 { background: #FFF1F2; }
.bg-rose-100 { background: #FFE4E6; }

/* Borders */
.border { border: 1px solid var(--ep-border); }
.border-0 { border: 0; }
.border-2 { border-width: 2px; }
.border-b { border-bottom: 1px solid var(--ep-border); }
.border-t { border-top: 1px solid var(--ep-border); }
.border-slate-100 { border-color: #F1F5F9; }
.border-slate-200 { border-color: #E2E8F0; }
.border-red-100 { border-color: #FEE2E2; }
.border-red-200 { border-color: #FECACA; }
.border-green-200 { border-color: #BBF7D0; }
.border-emerald-100 { border-color: #D1FAE5; }
.border-emerald-200 { border-color: #A7F3D0; }
.border-blue-100 { border-color: #DBEAFE; }
.border-blue-200 { border-color: #BFDBFE; }
.border-blue-300 { border-color: #93C5FD; }
.border-amber-100 { border-color: #FEF3C7; }
.border-amber-200 { border-color: #FDE68A; }
.border-violet-100 { border-color: #EDE9FE; }
.border-violet-200 { border-color: #DDD6FE; }
.border-rose-100 { border-color: #FFE4E6; }
.border-rose-200 { border-color: #FECDD3; }
.border-dashed { border-style: dashed; }

/* Border Radius */
.rounded { border-radius: 4px; }
.rounded-sm { border-radius: 6px; }
.rounded-md { border-radius: 8px; }
.rounded-lg { border-radius: 10px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: var(--ep-radius); }
.rounded-3xl { border-radius: var(--ep-radius-lg); }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: var(--ep-shadow); }
.shadow { box-shadow: var(--ep-shadow-md); }
.shadow-md { box-shadow: var(--ep-shadow-md); }
.shadow-lg { box-shadow: var(--ep-shadow-lg); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\\[100\\] { z-index: 100; }
.z-\\[200\\] { z-index: 200; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition-all { transition: all 0.15s; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-transform { transition: transform 0.15s; }
.transition-opacity { transition: opacity 0.15s; }
.transition-shadow { transition: box-shadow 0.15s; }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-y-0 { transform: translateY(0); }
.translate-y-3 { transform: translateY(12px); }
.translate-y-4 { transform: translateY(16px); }
.-translate-x-1\\/2 { transform: translateX(-50%); }
.rotate-180 { transform: rotate(180deg); }
.scale-105 { transform: scale(1.05); }

/* Resize */
.resize-none { resize: none; }
.resize { resize: both; }

/* List */
.list-none { list-style: none; }

/* Appearance */
.appearance-none { appearance: none; }

/* Selective */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Object */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Divide */
.divide-y > * + * { border-top: 1px solid #F1F5F9; }
.divide-slate-100 > * + * { border-color: #F1F5F9; }

/* Space */
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-x-1 > * + * { margin-left: 4px; }
.space-x-2 > * + * { margin-left: 8px; }
.space-x-3 > * + * { margin-left: 12px; }
.space-x-4 > * + * { margin-left: 16px; }

/* Ring */
.ring-2 { box-shadow: 0 0 0 2px rgba(220,38,38,0.2); }
.focus\\:ring-2:focus { box-shadow: 0 0 0 2px rgba(220,38,38,0.2); }
.focus\\:outline-none:focus { outline: none; }
.focus\\:border-red:focus { border-color: var(--ep-red); }

/* Truncate */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Animate */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
