/* ============================================================
   Tech86 SVG Icons & Decorative Elements
   CSS-only icons using background-image with data URIs
   ============================================================ */

/* ── Background Grid Pattern ─────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(67, 66, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 66, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
}

body>* {
    position: relative;
    z-index: 1;
}

/* ── Ambient Glow Orbs ───────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 66, 241, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Shield Icon (MFA / Security) ────────────────────────────── */
.t86-icon-shield {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367E8F9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* ── Lock Icon ───────────────────────────────────────────────── */
.t86-icon-lock {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367E8F9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* ── User Icon ───────────────────────────────────────────────── */
.t86-icon-user {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* ── Globe Icon ──────────────────────────────────────────────── */
.t86-icon-globe {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* ── Hexagon Decoration ──────────────────────────────────────── */
.t86-hexagon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234342F1' stroke-width='1.5' opacity='0.5'%3E%3Cpolygon points='12,2 22,8.5 22,15.5 12,22 2,15.5 2,8.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ── Dashboard Stat Card Enhancement ─────────────────────────── */
.card-title .svg-icon,
.card-title .fa,
.card-title i {
    color: var(--t86-accent-cyan);
    transition: color var(--t86-transition);
}

.card:hover .card-title .svg-icon,
.card:hover .card-title .fa,
.card:hover .card-title i {
    color: var(--t86-primary-light);
}

/* ── Sidebar Icons Enhancement ───────────────────────────────── */
.sidebar .svg-icon,
.offcanvas .svg-icon,
.list-group .svg-icon {
    color: var(--t86-text-muted);
    transition: color var(--t86-transition);
}

/* ── Page Header Decorative Line ─────────────────────────────── */
.page-header,
.content-header {
    position: relative;
    padding-bottom: 1rem;
}

.page-header::after,
.content-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--t86-gradient);
    border-radius: 2px;
}

/* ── Status Indicators ───────────────────────────────────────── */
.t86-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.t86-status-dot--active {
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    animation: t86-pulse 2s ease-in-out infinite;
}

.t86-status-dot--inactive {
    background: var(--t86-text-muted);
}

.t86-status-dot--warning {
    background: #F59E0B;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

@keyframes t86-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── Login Page Enhancement ──────────────────────────────────── */
.page-login .card::before,
.page-signup .card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--t86-gradient);
    border-radius: 0 0 4px 4px;
}

/* ── Divider with gradient ───────────────────────────────────── */
.t86-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--t86-border-active), transparent);
    border: none;
    margin: 1.5rem 0;
}

/* ── Focus ring ──────────────────────────────────────────────── */
*:focus-visible {
    outline: 2px solid var(--t86-primary) !important;
    outline-offset: 2px;
}