/* =====================================================
   FONTS — Roboto web font faces
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');


/* =====================================================
   BASE RESET — Tailwind CSS v3 reset/normalize
   ===================================================== */

.acnm-symbol-grid-app *,
.acnm-symbol-grid-app :after,
.acnm-symbol-grid-app :before {
    box-sizing: border-box;
    border: 0 solid #e5e7eb
}

.acnm-symbol-grid-app :after,
.acnm-symbol-grid-app :before {
    --tw-content: ""
}


.acnm-symbol-grid-app {
    --font-roboto: "Roboto", Arial, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: var(--font-roboto);
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent
}

.acnm-symbol-grid-app {
    margin: 0;
    line-height: inherit
}

.acnm-symbol-grid-app h1 {
    font-size: inherit;
    font-weight: inherit
}

.acnm-symbol-grid-app a {
    color: inherit;
    text-decoration: inherit
}

.acnm-symbol-grid-app button {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0
}

.acnm-symbol-grid-app button {
    text-transform: none
}

.acnm-symbol-grid-app button {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none
}



.acnm-symbol-grid-app h1,
.acnm-symbol-grid-app p {
    margin: 0
}


.acnm-symbol-grid-app button {
    cursor: pointer
}


.acnm-symbol-grid-app svg {
    display: block;
    vertical-align: middle
}

.acnm-symbol-grid-app p {
    font-size: .75rem;
    line-height: 1rem;
    min-height: 1.25em
}

/* =====================================================
   SEMANTIC LAYOUT — Named component classes
   ===================================================== */
.acnm-symbol-grid-app .page-container {
    /* margin-left: auto;
    margin-right: auto; */
    max-width: 56rem;
    padding-left: 0;
    padding-right: 0;
    min-height: 100vh
}


/* =====================================================
   COMPONENT STYLES — Inline-extracted & custom
   ===================================================== */

.acnm-symbol-grid-app .symbol-grid-wrapper {
    min-height: 2322px;
    contain: layout style;
    will-change: auto;
}

.acnm-symbol-grid-app .symbol-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    will-change: contents;
    min-height: auto;
}

.acnm-symbol-grid-app .symbol-box.symbol-box-wide {
    grid-column: span 2;
    background-color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out;
    transform: scale(1);
    user-select: all;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.acnm-symbol-grid-app .symbol-tooltip {
    position: absolute;
    inset: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0000ff;
    color: white;
    font-weight: normal;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.acnm-symbol-grid-app .symbol-tooltip.is-visible {
    opacity: 1;
}

.acnm-symbol-grid-app .symbol-tooltip-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.acnm-symbol-grid-app .symbol-text {
    text-align: center;
    white-space: nowrap;
    overflow: auto;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
    width: 100%;
}

.acnm-symbol-grid-app .symbol-text::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in webkit browsers */
}

.acnm-symbol-grid-app .symbol-box {
    grid-column: span 1;
    background-color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out;
    transform: scale(1);
    user-select: all;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
}


.acnm-symbol-grid-app .symbol-box:hover {
    background-color: #e5e7eb;
}

/* Custom Semantic Layout Classes */
.acnm-symbol-grid-app .page-layout {
    color: rgb(31 41 55);
    min-height: 100vh;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
}


.acnm-symbol-grid-app .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0.5rem;
    background: #4242f5;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: white;
    font-weight: 500;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.acnm-symbol-grid-app .btn-primary:hover {
    background: #0000ff;
}


.acnm-symbol-grid-app .btn-outline {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    white-space: nowrap;
    color: rgb(17 24 39);
    position: relative;
    background-color: white;
    border: 1px solid #e5e7eb;
    transition: color, background-color, border-color, text-decoration-color, fill, stroke 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.acnm-symbol-grid-app .btn-outline:hover {
    border-color: #d1d5db;
    background-color: #f3f4f6;
}


.acnm-symbol-grid-app .btn-active {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0.5rem;
    background-image: linear-gradient(to right, white, #f9fafb);
    border: 2px solid #0000ff;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #1d4ed8;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}


.acnm-symbol-grid-app .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    white-space: nowrap;
    color: rgb(17 24 39);
    position: relative;
    background-color: #f3f4f6;
    transition: color, background-color, border-color, text-decoration-color, fill, stroke 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.acnm-symbol-grid-app .btn-secondary:hover {
    background-color: #e5e7eb;
}


.acnm-symbol-grid-app .app-wrapper {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto !important;
}


.acnm-symbol-grid-app .app-inner {
    flex-grow: 1;
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0rem;
    padding-right: 0rem;
    height: auto !important;
}

.acnm-symbol-grid-app .nav-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}


.acnm-symbol-grid-app .nav-container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 0.25rem;
}


.acnm-symbol-grid-app .main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0px !important;
}

.acnm-symbol-grid-app .symbol-grid-wrapper {
    min-height: 2322px;
    contain: layout style;
    will-change: auto;
}

.acnm-symbol-grid-app .symbol-grid-inner {
    width: 100%;
    padding: 0;
    min-height: auto;
}

/* Floating action buttons */

/* Icons */

.acnm-symbol-grid-app .icon-grid,
.acnm-symbol-grid-app .icon-refresh {
    width: 0.75rem;
    height: 0.75rem;
}

.acnm-symbol-grid-app .icon-flame {
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.125rem;
    color: #ef4444;
    fill: currentColor;
}


/* Nav filter row */
.acnm-symbol-grid-app .nav-pad {
    padding-left: 0.5rem;
}


.acnm-symbol-grid-app .filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}


/* Button internal elements */
.acnm-symbol-grid-app .btn-emoji {
    font-size: 0.875rem;
    line-height: 1.25rem;
}


.acnm-symbol-grid-app .btn-label {
    font-weight: 500;
}

/* Emoticon category page wrapper (replaces jsx hash class) */
.acnm-symbol-grid-app .symbol-section {
    contain: layout style;
    will-change: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading spinner placeholder */

.acnm-symbol-grid-app .symbol-box-wide {
    grid-column: span 2;
    background-color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out;
    transform: scale(1);
    user-select: all;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.acnm-symbol-grid-app .symbol-box-wide:hover {
    background-color: #cdcdd4;
}

/* Global utility class for the hidden fallback textarea */
.aesthetic-copy-textarea {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}