/*
 * EP List - Global Design Tokens
 * All CSS variables for the plugin. Fully independent — no parent plugin dependency.
 * Prefix: --prodex-
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* ─── Brand Colors ─────────────────────────────────── */
    --prodex-primary: #ffb90d;
    --prodex-primary-hover: #e6a700;
    --prodex-danger: #E11D48;
    --prodex-danger-hover: #be123c;
    --prodex-success: #22c55e;
    --prodex-warning: #f59e0b;

    /* ─── Frontend Dark Theme ─────────────────────────── */
    --prodex-bg-dark: #0F1115;
    --prodex-card-dark: #1a1a1a;
    --prodex-card-dark-alt: #111318;
    --prodex-border-dark: #2d3039;
    --prodex-text-white: #ffffff;
    --prodex-text-light-muted: #6b7280;
    --prodex-text-light-secondary: #9ca3af;

    /* ─── Slate Palette ──────────────────────────────────── */
    --prodex-slate-100: #f1f5f9;
    --prodex-slate-200: #e2e8f0;
    --prodex-slate-500: #64748b;
    --prodex-slate-800: #1e293b;
    --prodex-slate-900: #0f172a;

    /* ─── Backgrounds ────────────────────────────────────── */
    --prodex-pure-white: #ffffff;
    --prodex-bg-light: #F9FAFC;
    --prodex-bluish-grey: #f1f5f9;

    /* ─── Borders ────────────────────────────────────────── */
    --prodex-border: #e2e8f0;
    --prodex-border-light: #f1f5f9;
    --prodex-input-border: #cbd5e1;

    /* ─── Status ─────────────────────────────────────────── */
    --prodex-status-green: #10b981;
    --prodex-status-red: #ef4444;
    --prodex-light-green: #11b98161;

    /* ─── Text ───────────────────────────────────────────── */
    --prodex-text-primary: #000000;
    --prodex-text-secondary: #475569;
    --prodex-text-muted: #94a3b8;
    --prodex-text-placeholder: #94a3b8;

    /* ─── Typography ─────────────────────────────────────── */
    --prodex-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ─── Spacing ────────────────────────────────────────── */
    --prodex-space-xs: 4px;
    --prodex-space-sm: 8px;
    --prodex-space-md: 12px;
    --prodex-space-lg: 16px;
    --prodex-space-xl: 20px;
    --prodex-space-2xl: 24px;
    --prodex-space-3xl: 32px;

    /* ─── Shadows ────────────────────────────────────────── */
    --prodex-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --prodex-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);

    /* ─── Type Badge Colors ──────────────────────────────── */
    --prodex-type-user-bg: rgba(37, 99, 235, 0.08);
    --prodex-type-user-text: #2563eb;
    --prodex-type-rented-bg: rgba(5, 150, 105, 0.08);
    --prodex-type-rented-text: #059669;
    --prodex-type-b2c-bg: rgba(124, 58, 237, 0.08);
    --prodex-type-b2c-text: #7c3aed;
}

/* ═════════════════════════════════════════════════════════ */
/*  TOAST NOTIFICATION STYLES                               */
/* ═════════════════════════════════════════════════════════ */

.prodex-toast-container {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.prodex-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    font-family: var(--prodex-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--prodex-pure-white);
    background: var(--prodex-slate-800);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    cursor: pointer;
    animation: prodexToastIn 0.25s ease forwards;
}

.prodex-toast .material-symbols-outlined {
    font-size: 20px;
}

.prodex-toast-success {
    background: #059669;
}

.prodex-toast-error {
    background: #dc2626;
}

.prodex-toast-info {
    background: var(--prodex-slate-800);
}

.prodex-toast-out {
    animation: prodexToastOut 0.15s ease forwards;
}

@keyframes prodexToastIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes prodexToastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ═════════════════════════════════════════════════════════ */
/*  CONFIRM DIALOG STYLES                                   */
/* ═════════════════════════════════════════════════════════ */

.prodex-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: prodexFadeIn 0.15s ease;
}

@keyframes prodexFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.prodex-dialog {
    background: var(--prodex-pure-white);
    border-radius: 16px;
    padding: 28px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    font-family: var(--prodex-font);
}

.prodex-dialog h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--prodex-text-primary);
    margin: 0 0 8px;
}

.prodex-dialog p {
    font-size: 0.875rem;
    color: var(--prodex-text-secondary);
    margin: 0 0 20px;
    line-height: 1.5;
}

.prodex-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.prodex-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--prodex-font);
    cursor: pointer;
    border: 1px solid var(--prodex-input-border);
    background: var(--prodex-pure-white);
    color: var(--prodex-text-secondary);
    transition: all 0.15s ease;
}

.prodex-btn:hover {
    background: var(--prodex-bg-light);
}

.prodex-btn-secondary {
    background: var(--prodex-pure-white);
    color: var(--prodex-text-secondary);
}

/* ═════════════════════════════════════════════════════════ */
/*  SPINNER                                                 */
/* ═════════════════════════════════════════════════════════ */

.prodex-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: prodexSpin 0.6s linear infinite;
}

.prodex-spinner-dark {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--prodex-text-secondary);
}

@keyframes prodexSpin {
    to {
        transform: rotate(360deg);
    }
}