/**
 * Haneko CodeShield - Core CSS & Theme Tokens
 * Font Imports & Universal Utility Engine
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&family=Outfit:wght@500;600;700;800;900&family=Pacifico&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Shrikhand&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-retro-title: 'Shrikhand', cursive, sans-serif;
    --font-retro-script: 'Pacifico', cursive;
    --font-clay: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Accessibility & Screen Reader / Hidden Inputs */
.clay-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.35); }

/* 3D Modern Clay Logout Button & SVG Icon */
.clay-btn-logout-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff1f2;
    border: 2px solid #ffffff;
    border-radius: 14px;
    color: #e11d48;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 
        0 6px 14px rgba(225, 29, 72, 0.16),
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 -2px 3px rgba(225, 29, 72, 0.12);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    padding: 0;
}

.clay-btn-logout-nav:hover {
    background: #ffe4e6;
    color: #be123c;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 
        0 10px 20px rgba(225, 29, 72, 0.26),
        inset 0 2px 3px rgba(255, 255, 255, 1);
}

.clay-btn-logout-nav:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 
        0 3px 6px rgba(225, 29, 72, 0.15),
        inset 0 2px 3px rgba(0, 0, 0, 0.08);
}

.clay-logout-svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.clay-btn-logout-nav:hover .clay-logout-svg {
    transform: translateX(2px);
}

/* In Drawer */
.clay-drawer-item.is-logout .clay-logout-svg {
    width: 20px;
    height: 20px;
    stroke: #e11d48;
}

.clay-drawer-icon.is-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff1f2;
    border-radius: 10px;
    border: 1px solid #fecdd3;
}

/* In Mobile Admin Tabs */
.clay-nav-link.is-logout-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e11d48 !important;
}

.clay-nav-link.is-logout-tab .clay-logout-svg {
    width: 15px;
    height: 15px;
    stroke: #e11d48;
}

/* 3D Vector SVG Fill Utility for Solid Vectors (e.g. Telegram branding) */
.clay-svg-fill {
    fill: currentColor !important;
    stroke: none !important;
}

/* ==========================================================================
   Universal Vector SVG Standards (3D Clayful Platform)
   Guarantees safe baseline sizing across all public, checkout, & admin views
   ========================================================================== */
.clay-nav-svg,
.clay-btn-svg {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
}

/* ==========================================================================
   Universal Scrollbar Suppression Across the Entire Application
   Completely hides all vertical & horizontal scrollbar bars/thumbs/tracks
   across every container, modal, dialog, drawer, table, pill bar, and the body,
   while preserving 100% smooth mousewheel, touch swipe, and keyboard scrolling.
   ========================================================================== */
html,
body,
*,
*::before,
*::after,
.clay-modal-dialog,
.clay-user-drawer,
.clay-mobile-tabs,
.clay-admin-mobile-tabs,
.clay-portal-tabs,
.clay-filter-tabs,
.clay-filter-pills,
.clay-tabs-scroll,
.clay-hide-scrollbar,
.clay-receipt-key-display,
.clay-user-issued-key,
.clay-tab-bar,
.clay-sub-filters,
.clay-admin-table-tabs,
.clay-admin-tab-nav,
.clay-admin-filter-chips,
.clay-licenses-toolbar,
.clay-quick-dur-pills,
.clay-pills-grid,
.clay-table-responsive,
.clay-tickets-filter-tabs,
.clay-platform-filter-bar,
.glass-admin-tabs,
.glass-filter-chips {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ and Edge */
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.clay-modal-dialog::-webkit-scrollbar,
.clay-user-drawer::-webkit-scrollbar,
.clay-mobile-tabs::-webkit-scrollbar,
.clay-admin-mobile-tabs::-webkit-scrollbar,
.clay-portal-tabs::-webkit-scrollbar,
.clay-filter-tabs::-webkit-scrollbar,
.clay-filter-pills::-webkit-scrollbar,
.clay-tabs-scroll::-webkit-scrollbar,
.clay-hide-scrollbar::-webkit-scrollbar,
.clay-receipt-key-display::-webkit-scrollbar,
.clay-user-issued-key::-webkit-scrollbar,
.clay-tab-bar::-webkit-scrollbar,
.clay-sub-filters::-webkit-scrollbar,
.clay-admin-table-tabs::-webkit-scrollbar,
.clay-admin-tab-nav::-webkit-scrollbar,
.clay-admin-filter-chips::-webkit-scrollbar,
.clay-licenses-toolbar::-webkit-scrollbar,
.clay-quick-dur-pills::-webkit-scrollbar,
.clay-pills-grid::-webkit-scrollbar,
.clay-table-responsive::-webkit-scrollbar,
.clay-tickets-filter-tabs::-webkit-scrollbar,
.clay-platform-filter-bar::-webkit-scrollbar,
.glass-admin-tabs::-webkit-scrollbar,
.glass-filter-chips::-webkit-scrollbar {
    display: none !important; /* WebKit (Chrome, Safari, Edge, Android, iOS) */
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    background: transparent !important;
    opacity: 0 !important;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
    border: none !important;
}

/* ==========================================================================
   Universal CodeShield SVG Icon Standard (Bulletproof Sizing & Alignment)
   ========================================================================== */
svg.clay-icon,
svg.clay-svg-icon,
svg.clay-nav-svg,
svg.clay-btn-svg,
svg.clay-search-svg,
svg.clay-logout-svg {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.18em;
    flex-shrink: 0;
    max-width: 100%;
}
