﻿/* Modern UI theme for E-cToken */

:root {
    --wte-bg: #f8fafc;
    --wte-text: #0f172a;
    --wte-muted: #475569;
    --wte-border: rgba(15,23,42,.10);
    --wte-border-2: rgba(15,23,42,.07);
    --wte-shadow: 0 18px 45px rgba(2,8,23,.10);
    --wte-shadow-sm: 0 10px 24px rgba(2,8,23,.10);
    --wte-radius: 22px;
    --wte-radius-sm: 14px;
    --wte-primary-1: #2563eb;
    --wte-primary-2: #1d4ed8;
}

html {
    font-size: 14px;
}

@media (min-width:768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--wte-text);
    background: radial-gradient(1200px 500px at 65% 30%, rgba(59,130,246,.18), transparent 60%), radial-gradient(900px 450px at 35% 60%, rgba(236,72,153,.12), transparent 60%), radial-gradient(800px 400px at 70% 75%, rgba(34,197,94,.10), transparent 55%), var(--wte-bg);
    font-family: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Apple Color Emoji","Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.wte-shell {
    max-width: 1140px;
    margin: 0 auto;
    padding: 18px 18px;
}

.wte-main {
    flex: 1;
    padding-top: 18px;
    padding-bottom: 26px;
}

.wte-title {
    font-weight: 780;
    letter-spacing: -0.02em;
}

.wte-subtitle {
    color: var(--wte-muted);
}

/* Glass card */
.wte-card {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
    border: 1px solid var(--wte-border);
    border-radius: var(--wte-radius);
    box-shadow: var(--wte-shadow);
}

.wte-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--wte-border-2);
}

.wte-card-body {
    padding: 18px 22px;
}

/* =========================
   NAVBAR (PRO)
   ========================= */

.wte-nav {
    background: rgba(255,255,255,.72) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--wte-border-2);
    padding: 10px 0;
}

    .wte-nav.wte-nav-scrolled {
        box-shadow: var(--wte-shadow-sm);
    }

    /* container interno: ordenado + aire */
    .wte-nav .container,
    .wte-nav-container {
        display: flex;
        align-items: center;
        gap: 24px;
    }

/* Brand */
.wte-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 16px;
}

    .wte-brand:hover {
        background: rgba(15,23,42,.03);
    }

/* Logo: SIEMPRE visible (no “desaparece”) */
.wte-logo {
    height: 38px;
    width: auto;
    display: block;
    border-radius: 12px; /* o 0 si no querés redondeo */
    border: none;
    background: transparent;
    padding: 0;
    object-fit: contain;
}


/* fallback si el logo no carga */
.wte-logo-fallback {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.10);
    background: #e5e7eb;
    font-weight: 900;
    font-size: 14px;
    color: rgba(15,23,42,.70);
}

.wte-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.wte-brand-title {
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
    color: #6b7280;
}

.wte-brand-subtitle {
    margin-top: 2px;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* Center links */
.wte-nav-links {
    gap: 8px;
}

.wte-nav .nav-link {
    color: rgba(107,114,128,.92) !important;
    border-radius: 999px;
    padding: 8px 12px !important;
    transition: background-color .15s ease,color .15s ease;
    white-space: nowrap;
    font-size: .95rem;
}

    .wte-nav .nav-link:hover {
        background: rgba(15,23,42,.05);
        color: #111827 !important;
    }

.wte-nav .navbar-toggler {
    border: 1px solid var(--wte-border);
    border-radius: 12px;
}

/* Right side: más aire y tipografía correcta */
.wte-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.wte-nav-btn {
    border-radius: 14px !important;
    padding: .42rem .78rem;
}

/* System pill */
.wte-system-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .32rem .60rem;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.14);
    background: rgba(15,23,42,.04);
    font-weight: 850;
    letter-spacing: .02em;
    color: rgba(15,23,42,.85);
    min-width: 56px;
    font-size: .84rem;
}

/* Username: más chico + no pegado + ellipsis */
.wte-user-name {
    font-weight: 500;
    font-size: .84rem; /* ✅ más chico */
    line-height: 1.1;
    color: rgba(15,23,42,.62);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile polish */
@media (max-width:991.98px) {
    .wte-nav {
        padding: 8px 0;
    }

        .wte-nav .container,
        .wte-nav-container {
            gap: 12px;
        }

    .wte-nav-links {
        padding-top: 10px;
    }

    .wte-nav-right {
        padding: 10px 0 2px 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .wte-brand {
        padding: 4px 6px;
    }
}

/* Footer */
.wte-footer {
    border-top: 1px solid var(--wte-border-2);
    color: rgba(71,85,105,.95);
    padding: 12px 0;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(10px);
}

/* Links */
a {
    color: var(--wte-primary-2);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Buttons */
.btn {
    border-radius: var(--wte-radius-sm) !important;
    padding: .48rem .85rem;
    transition: transform .05s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    border: none !important;
    background: linear-gradient(135deg,var(--wte-primary-1),var(--wte-primary-2)) !important;
    box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

    .btn-primary:hover {
        box-shadow: 0 14px 30px rgba(37,99,235,.22);
    }

.btn-outline-secondary {
    border-color: rgba(15,23,42,.18) !important;
    color: var(--wte-text) !important;
}

    .btn-outline-secondary:hover {
        background: rgba(15,23,42,.06) !important;
    }

/* Inputs */
.form-control, .form-select {
    border-radius: var(--wte-radius-sm);
    border-color: rgba(15,23,42,.14);
}

    .form-control:focus, .form-select:focus {
        border-color: rgba(37,99,235,.35);
        box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
    }

/* Tables */
.table thead th {
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid rgba(15,23,42,.10) !important;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid rgba(15,23,42,.06) !important;
}

/* Alerts */
.alert {
    border-radius: var(--wte-radius-sm);
    border: 1px solid rgba(15,23,42,.10);
}

/* Utility */
.wte-muted {
    color: var(--wte-muted) !important;
}

/* ---------- STOCK PILL (0 rojo, 1 amarillo, 2/3 verde) ---------- */
.wte-stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .92rem;
    letter-spacing: .02em;
    border: 1px solid rgba(15,23,42,.12);
    color: #0f172a;
}

.wte-stock-0 {
    background: rgba(239,68,68,.18);
    color: #7f1d1d;
    border-color: rgba(239,68,68,.28);
}

.wte-stock-1 {
    background: rgba(245,158,11,.20);
    color: #7c2d12;
    border-color: rgba(245,158,11,.30);
}

.wte-stock-ok {
    background: rgba(34,197,94,.18);
    color: #14532d;
    border-color: rgba(34,197,94,.30);
}

/* ---------- CLAIM PAGE polish ---------- */
.wte-page-head {
    margin: 6px 0 14px 0;
}

.wte-page-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    color: var(--wte-text);
    letter-spacing: -0.02em;
}

.wte-meta-line {
    font-size: .95rem;
    color: #475569;
    margin-bottom: 14px;
}

.wte-meta-k {
    font-weight: 750;
    color: #334155;
}

.wte-meta-v {
    font-weight: 850;
    color: #0f172a;
}

.wte-meta-sep {
    margin: 0 8px;
    color: #94a3b8;
}

.wte-token-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 16px 0;
}

.wte-token-box {
    width: 100%;
    max-width: 760px;
    text-align: center;
    font-size: 34px;
    font-weight: 950;
    font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    color: #0f172a;
    background: rgba(15,23,42,.05);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    padding: 16px 18px;
}

    .wte-token-box.wte-copied {
        transform: scale(1.01);
        box-shadow: 0 0 0 6px rgba(37,99,235,.12);
        transition: all .15s ease;
    }

.wte-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wte-muted-note {
    color: #64748b;
    font-size: .95rem;
}
