@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Default colors for light mode */
    --bulma-primary: #4a90e2;
    --bulma-link: #3273dc;
    --bulma-success: #23d160;
    --bulma-warning: #ffdd57;
    --bulma-danger: #ff3860;
    --bulma-scheme-secondary: hsl(220deg 8.34% 28.51%);
    --bulma-scheme-main: #F5F6F6;
    --nstyle-hover: #cecdcd;
    --bulma-scheme-text: var(--bulma-text);
    --sidebar-size: 250px;
    --navbar-spacing: 40px
}

* {
    box-sizing: border-box;
}




body {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100dvh;
    transition: all 0.3s ease-in-out;
    background-color: #00A1E0;
    color: var(--bulma-scheme-text);
    overflow: hidden;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.nstyle {
    background-color: var(--bulma-scheme-main);
    border-radius: 20px;
    color: var(--bulma-text) !important;
    border: unset !important;
    box-shadow:
            rgba(0, 0, 0, 0.08) 0px 0.706592px 0.706592px -0.666667px,
            rgba(0, 0, 0, 0.08) 0px 1.80656px 1.80656px -1.33333px,
            rgba(0, 0, 0, 0.07) 0px 3.62176px 3.62176px -2px,
            rgba(0, 0, 0, 0.07) 0px 6.8656px 6.8656px -2.66667px,
            rgba(0, 0, 0, 0.05) 0px 13.6468px 13.6468px -3.33333px,
            rgba(0, 0, 0, 0.02) 0px 30px 30px -4px, 
            rgb(255, 255, 255) 0px 3px 1px 0px inset;
}

.nstyle-darkbg {
    background-color: var(--bulma-scheme-main);
    border-radius: 20px;
    color: var(--bulma-text) !important;
    border: unset !important;
    box-shadow:
        rgba(255, 255, 255, 0.08) 0px 0.706592px 0.706592px -0.666667px,
        rgba(255, 255, 255, 0.08) 0px 1.80656px 1.80656px -1.33333px,
        rgba(255, 255, 255, 0.07) 0px 3.62176px 3.62176px -2px,
        rgba(255, 255, 255, 0.07) 0px 6.8656px 6.8656px -2.66667px,
        rgba(255, 255, 255, 0.05) 0px 13.6468px 13.6468px -3.33333px,
        rgba(255, 255, 255, 0.02) 0px 30px 30px -4px,
        rgba(100, 100, 100, 0.5) 0px 2px 1px -1px inset !important;
}

.modal {
    z-index: 100;
}

.modal-card-head {
    box-shadow: none !important;
}

.modal.modal-relative {
    margin-top: 60px;
}

.modal.modal-relative .modal-card {
    width: 100%;
    height: 100vh;
}


.modal.modal-relative .modal-card-head {
    padding-top: 20px;
}

.body-scroll-disable {
    height: 100vh;
    overflow-y: hidden;
}

.sense-nav {
    max-height: 20px;
    display: flex;
    background-color: #00A1E0;
}

.nav-content {
    position: absolute;
    top: 4px;
    right: 1%;
    width: fit-content;
    z-index: 10;
}
.navbar-item, .navbar-link {
    color: var(--bulma-scheme-text);
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 1s ease-out;
    border-radius: 10px;
    margin-inline: 2px;
}
.navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, 
a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover {
    --bulma-navbar-item-background-l-delta: 0%;
    --bulma-navbar-item-background-a: 0;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px 0px inset;
    transition: box-shadow 0.3s linear;
}

.delete.nstyle {
    --bulma-delete-color: var(--bulma-scheme-text);
}

/* Sidebar */
.sidebar {
    background-color: #f8f7f7;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: var(--sidebar-size);
    height: 100vh;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow:
            rgba(0, 0, 0, 0.08) 2px 0.706592px 2.706592px 0.666667px
}

/* Hide sidebar */
.sidebar.is-hidden {
    width: 0;
    padding: 0;
    overflow: hidden;
    transform: translateX(-100%);
}

/* Sidebar Links */
.sidebar a {
    color: #282829;
    background-color: inherit;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    transition: box-shadow 1s ease-out;
}

.sidebar a i {
    margin-right: 10px;
}

.sidebar a:hover {
    /* background: #e3e1e1; */
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px 0px inset;
    transition: box-shadow 0.3s linear;
}

/* Tab-like effect */
.sidebar a.is-tab:hover {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px 0px inset;
    transition: box-shadow 0.3s linear;
}

.sidebar a.is-active {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px 0px inset;
    transition: box-shadow 0.3s linear;
}

.sp-text-divider {
    border-bottom: 1px solid #e3e1e1;
    margin-bottom: 1rem !important;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-size);
    margin-top: 32px;
    width: calc(100% - var(--sidebar-size));
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
    overflow: hidden;
}

.main-content::-webkit-scrollbar {
    width: 0px;
}


/* When sidebar is hidden, main content expands */
.main-content.is-expanded{
    margin-left: 0;
    margin-top: unset;
    width: 100%;
}


.main-content .modal.modal-relative{
    margin-left: var(--sidebar-size);
    margin-top: var(--navbar-spacing);
    width: calc(100% - var(--sidebar-size));
    height: calc(100vh - var(--navbar-spacing));
}

.main-content.is-expanded .modal.modal-relative{
    margin-left: 0;
    width: 100%;
}


/* Navbar burger */
.navbar-burger {
    cursor: pointer;
    color: white;
}

#toggle-sidebar {
    position: fixed !important;
    top: 10px !important;
    left: calc(var(--sidebar-size) + 10px);
    z-index: 10000 !important;
    transition: left 0.3s ease, box-shadow 1s ease-out !important;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    background: var(--bulma-scheme-main);
}

/* When sidebar is visible, position toggle at 250px */
#toggle-sidebar.sidebar-visible {
    left: calc(var(--sidebar-size) + 10px) !important;
}

/* When sidebar is hidden, position toggle near the left edge */
#toggle-sidebar.sidebar-hidden {
    left: 10px !important;
}

#toggle-sidebar:hover,
#toggle-sidebar:focus,
#toggle-sidebar:active {
    /* background: none !important; */
    /* box-shadow: none !important; */
    outline: none !important;
    transition: box-shadow 0.3s linear;
}

.senses-container {
    flex: 1;
    justify-content: center;
    align-items: center;
    min-height: 0;
    margin-top: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Chat Container */
.chat-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 10px;
    z-index: 10;
}


.chat-controls {
    /* override the old centering rules: */
    /*position: absolute;*/
    margin-bottom: .5rem;      /* adjust this so it sits right below the textarea */
    margin-left: .5rem;            /* align to the left edge of the textarea */
    width: 100%;        /* span the full width of the textarea */
    max-width: none;
    transform: none;
}

.chat-controls .control {
    margin-left: 3px;
    margin-right: 3px !important;
}

.chat-controls .control button:not(.fab){
    padding-right: 20px;
}

.chat-controls .control button {
    border-radius: 20px !important;
}

/* Updated Chat Box */
.chat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    position: relative;
    transition: transform 0.4s ease-in-out;
}

/* Chat Input Container */
.chat-input-container {
    background-color: #F5F6F5;
    /*display: flex;*/
    /*align-items: center;*/
    width: 70%;
    position: relative;
    border: 2px solid #e3e1e1;
    border-radius: 20px;
    padding: 5px;
    display: block !important;
}

.chat-container-files {
    display: flex;
    flex-wrap: nowrap;
    overflow-y: auto;
    gap: 0.5rem;
    padding: 0.5rem;
}
.chat-container-files::-webkit-scrollbar {
    height: 6px;
}
.chat-container-files::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.chat-input-container .textarea {
    flex-grow: 1;
    /*border: 2px solid #ddd;*/
    /*border-radius: 10px;*/
    border: none;
    resize: none;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    transition: all 0.4s ease-in-out;
    min-height: 70px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: none;
    background-color: var(--bulma-scheme-main);
}

.chat-input-container .textarea.no-focus:focus {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

.edit-query-btn {
    /*padding: 4px 8px;*/
    /*height: 22px;*/
}

.user-query  {
   border-radius: 20px;
    padding: 0.75rem;
    margin-top: 35px;
    margin-bottom: 35px;
    bacgkground-color: #f9f9f9;
    max-width: 75%;
    left:25%;
}

.user-chat-actions {
    position: absolute;
    padding-left: 20px;
    padding-right: 20px;
    bottom: -32px;
    display: none;
    transition: opacity 0.2s ease;
    opacity: 0;
    width: 100%;
    text-align: end;
}


.user-chat-actions-container:hover .user-chat-actions {
    display: block;
    opacity: 1;
}

.animated-query-display {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    z-index: 50;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    user-select: none;
    opacity: 0.95;
    letter-spacing: 1px;
    color: #fff;
}

.animated-query-display.torchlight {
    position: absolute;
    color: #fff;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* animated dark sweep on top of the white text */
.animated-query-display.torchlight::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
            120deg,
            rgba(0, 0, 0, 0.00) 0%,
            rgba(0, 0, 0, 0.05) 18%,
            rgba(0, 0, 0, 0.02) 36%,
            rgba(0, 0, 0, 0.04) 55%,
            rgba(0, 0, 0, 0.16) 78%,
            rgba(0, 0, 0, 0.05) 100%
    );
    background-size: 300% 100%;
    background-position: 0% 50%;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: torchlight-move 6s ease-in-out infinite;
}

@keyframes torchlight-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



@keyframes shinePulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 223, 0, 0.3),
        0 0 30px rgba(255, 240, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.7),
        0 0 28px rgba(255, 223, 0, 0.5),
        0 0 40px rgba(255, 240, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 223, 0, 0.3),
        0 0 30px rgba(255, 240, 0, 0.2);
    }
}

.shine-effect {
    animation: shinePulse 1s ease-in-out 3; /* play 3 times */
    border: 1px solid #fcd307;
}


.m-container {
    margin-top: 85px;
}


.tab-content.tab-content-settings{
    display: block !important;
}

.tab-content-settings .tab-pane {
    display: none;
}

.tab-content-settings .tab-pane.is-active {
    display: block; 
}

.tabs .tab-pane.is-active{
    display: block !important;  
}

/* Simple Grey Send Button */
#send-btn {
    position: absolute;
    right: 7px;
    background: #e0e0e0;
    border: none;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

#send-btn:hover {
    background: #bdbdbd;
}


.button.is-transparent {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem !important;
    min-height: auto;
    min-width: auto;
}

.button.is-transparent:hover {
    background-color: rgba(0, 0, 0, 0.05); /* optional hover effect */
}


.is-fixed-centered {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 800px;
}


.is-fixed-bottom-centered {
    position: absolute;
    min-width: 100% !important;
    bottom: 136%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 800px;
}


#messages-container {
    flex:1;
    overflow-y: auto;
    overflow-x: hidden;
    min-width:100% !important;
    min-height: 100% !important;
    max-height: 100%;
    padding: 1rem 4%;
    padding-bottom: 220px !important;
    margin-top: 36px
}

/* The box containing messages should scroll if it grows too tall. */
#messages-box {
    height: auto;
    transition: all 0.4s ease;
    position: relative;
}

a {
    color: var(--bulma-scheme-text);
}


.fixed-footer-menu {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 10000;
}

/* Optional: Adjust the dropdown menu styling if needed */
.fixed-footer-menu .dropdown-menu {
    min-width: 200px;
    left:-118px;
}

.fixed-footer-menu .dropdown-menu,
.fixed-footer-menu .dropdown-content {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap;
}

.dropdown-content {
    overflow: hidden;
    /* background: transparent; */
    /* border-radius: unset;
    box-shadow: unset; */
}
.dropdown-content .dropdown-item {
    padding: 0.5rem 1rem;
    background: transparent !important;
}
.dropdown-content .dropdown-item:hover {
    background: var(--nstyle-hover) !important;
}

.navbar-dropdown a.navbar-item:not(.is-active,.is-selected) {
    background-color: transparent !important;
}


/* Fix history & settings white background issue */
.menu-list li {
    background: transparent !important;
}

.auth-opener {
    margin-top: auto;
    padding: 1rem;
}


/*
  Simplified grayscale styles for the sign-in card.
  Adjust hex codes as needed for your brand's neutrals.
*/

#signin-tab .signin-card {
    padding: 2rem;
    max-width: 480px;
    margin: 0 auto; /* center horizontally in the modal */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08); */
}

#signin-tab .signin-card .title.is-4 {
    margin-bottom: 0.25rem;
}

#signin-tab .signin-card .subtitle {
    margin-bottom: 1rem;
}

/* Buttons */
#signin-tab .signin-card .button.is-dark {
    background-color: #4a4a4a;
    border-color: #4a4a4a;
}
#signin-tab .signin-card .button.is-dark:hover {
    background-color: #3f3f3f;
    border-color: #3f3f3f;
}

/* Optional subtle glow on hover */
#signin-tab .signin-card .glow-on-hover {
    transition: box-shadow 0.2s ease;
}
#signin-tab .signin-card .glow-on-hover:hover {
    box-shadow: 0 0 8px rgba(74, 74, 74, 0.25);
}

/* Google button styling */
#signin-tab .signin-card .google-btn {
    border: 1px solid #ccc;
    justify-content: center;
}


#signin-tab .signin-card .google-btn .fab.fa-google {
    color: #DB4437; /* subdued icon color */
}

/* Error messages */
#signin-tab .signin-card .error-message {
    color: #ff3860; /* Bulma's default danger color */
    margin-bottom: 0.75rem;
}

/* Processing message */
#signin-tab .signin-card .processing-message {
    color: #4a4a4a;
    font-style: italic;
    margin-top: 0.5rem;
}

/* "Don't have an account?" link */
#signin-tab .signin-card .signup-link {
    margin-top: 1rem;
}

#signin-tab .signin-card .signup-link a {
    color: #3273dc; /* Bulma's link color, or you can use #4a4a4a for an even more subdued look */
}


.processing-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-right: 0.4em; /* space before text */
    vertical-align: middle;
}

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



.super-token {
    white-space: pre-wrap;  /* Preserves spaces and ensures wrapping */
    word-break: break-word; /* Forces breaking if needed */
}

.senses-actions {
    margin-bottom: 30%;
}

/* Super Notification Base */
.super-notification {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    min-width: 250px;
    max-width: 400px;
    word-wrap: break-word;
}

/* Show Animation */
.super-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Icons */
.super-notification i {
    margin-right: 10px;
    font-size: 18px;
}

/* Close Button */
.super-notification .delete {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
}

.super-notification .delete:hover {
    opacity: 0.7;
}


.payments-container {
    flex:1;
    width: 90%;
    place-content: center;
}

.pending-balance-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /*background-color: #fff;          !* White background *!*/
    border: 3px solid #ff3860;       /* Red border (Bulma red) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle drop shadow */
    margin: 0 auto;                /* Center if block-level */
}

.ai-response {
    padding: 10px 15px;
    border-radius: 10px !important;
}

#ajax-loader {
    position: fixed;
    top: 45%;
    left: calc(41% + var(--sidebar-size));
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none; /* hidden by default */
}

#ajax-loader .spinner {
    border: 8px solid #f3f3f3;   /* Light grey border */
    border-top: 8px solid #3498db; /* Blue border on top */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#pixel-list {
    margin-top: 10px;
}


#pixel-copy-container {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

/* Grid Card Styles using Bulma columns */
.pixel-list .card,
#pixel-copy-container .card {
    cursor: pointer;
    transition: transform 0.2s ease;
}
#pixel-copy-container .card:hover {
    transform: scale(1.03);
}

/* Enlarged Image Modal Styling */
#enlarged-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.enlarged-image-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.enlarged-image-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
#close-enlarged-image {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: white;
    border-radius: 50%;
    border: none;
}

/* Base styling for the pixel card */
/* Multi-layer box-shadow effect for pixel cards */
.pixel-card {
    border: 1px solid #eee; /* Light border for a clean look */
    border-radius: 10px;
    /* Default multi-layer shadow: subtle white sky blue touches */
    box-shadow:
            1px 2px 2px hsl(220, 60%, 95%, 0.2),  /* Very light, almost white blue */
            2px 4px 4px hsl(220, 60%, 90%, 0.2),
            4px 8px 8px hsl(220, 60%, 85%, 0.2);
}

/* Hover state: enhance the layers and lift the card */
.pixel-card:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow:
            1px 2px 2px hsl(220, 60%, 95%, 0.333),
            2px 4px 4px hsl(220, 60%, 90%, 0.333),
            3px 6px 6px hsl(220, 60%, 85%, 0.333),
            4px 8px 8px hsl(220, 60%, 80%, 0.333);
}

.download-pixel {
    color: black;
}


.drag-over {
    border: 2px dashed #48c774;
    background-color: rgba(72, 199, 116, 0.1);
}



.uploaded-file-preview {
    font-size: 15px;
    max-width: 150px;
    padding: 6px;
}




#drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    margin-left: var(--sidebar-size);
    width: calc(100% - var(--sidebar-size));
    height: 100%;
    background-color: rgba(20, 20, 20, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

.drop-overlay-content {
    text-align: center;
    color: white;
    font-size: 1.2rem;
}

.drop-overlay-content img {
    width: 300px;
    height: 300px;
    opacity: 0.9;
    margin-bottom: 10px;
}



.is-indicator {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    display: none;
    pointer-events: none;
    z-index: 10;
}



/* ===== FAB layout & colours ============================================ */
.fab-wrapper{
    /*position:absolute;
    bottom:2.5rem;
    right:2.5rem;
    z-index:200; */
}

.fab{
    /*width:40px;*/
    /*height:40px;*/
    border-radius:50%;
    /*padding: 0;*/
    /*border:none;*/
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color:#fff;
    /*font-size:22px;*/
    transition:transform .25s ease, opacity .25s ease;
    text-transform: none !important;
}

.fab-action{
    position:absolute;
    opacity:0;
    pointer-events:none;
    margin-bottom: 8px;
    text-transform: none !important;
}

.is-red   {background:#f44336;}
.is-yellow{background:#ffeb3b;color:#212121;}
.is-green {background:#4caf50;}
.is-blue  {background:#2196f3;}

/* small tooltip */
.fab-action::after{
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    text-transform: none !important;
    content:attr(data-tip);
    position:absolute;right:120%;top:50%;transform:translateY(-50%);
    background:#333;color:#fff;
    border-radius:4px;white-space:nowrap;opacity:0;pointer-events:none;
    transition:opacity .2s;
    text-transform: none !important;
}
.fab-action:hover::after{opacity:1;}

/* ===== open / closed states =========================================== */
.fab-wrapper.open .fab-action{
    opacity:1;pointer-events:auto;
}

.fab-main {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;       /* optional: give it a black outline */
}
.fab-main .icon,
.fab-main i {
    color: #000;
}

/* match Bulma’s selector plus your class */
button.fab-action.button {
    text-transform: none !important;
}

/* and the pseudo-element that actually renders your tooltip */
button.fab-action.button::after {
    text-transform: none !important;
}

button.fab-action.button[data-tip]::after {
    text-transform: none !important;
    /* re-declare content in case a library is re-writing it: */
    content: attr(data-tip) !important;
}



/* ============================
   Attachment Preview Styles
   ============================ */

/* Container for each file preview */
.icon-wrapper {
    position: relative;
    display: inline-block;
    min-width: 50px;
    min-height: 50px;
    overflow: hidden;
    margin-right: 0.5rem;
}

/* SVG sits underneath; no scale on load */
.icon-wrapper .attachment-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* White cover that we will manually resize via JS */
.icon-cover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;           /* start fully covering SVG */
    background-color: #ffffff;
    z-index: 2;
    /* no animation here; height is controlled in JS */
}

/* ==============================================
   B) Shake Animation
   ============================================== */

@keyframes shake {
    0%, 100%  { transform: translateX(0); }
    20%, 60%  { transform: translateX(-4px); }
    40%, 80%  { transform: translateX(4px); }
}

.icon-wrapper .attachment-icon.shake {
    animation: shake 0.6s ease-in-out both;
}



/* --------------------------------------------------
   C) Your existing CSS (unchanged except for icon)
   -------------------------------------------------- */

/* Container for each file preview */
.attachment-preview {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    position: relative;
    max-width: 300px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

/* (Remove any existing transform/scale rules from .attachment-icon—they’re replaced above.) */

/* Container for “filename” + “type” */
.attachment-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.attachment-name {
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: inline-block;
}

.attachment-type {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px; /* or whatever fits your design */
    display: inline-block;
}

/* The thin, green progress bar under each preview */
progress.chat-file-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    background-color: #e0e0e0;
}
progress.chat-file-progress::-webkit-progress-value {
    background-color: #4caf50;
    border-radius: 0.25rem;
}
progress.chat-file-progress::-moz-progress-bar {
    background-color: #4caf50;
    border-radius: 0.25rem;
}
progress.chat-file-progress[value="100"]::-webkit-progress-value {
    background-color: #2e7d32;
}
progress.chat-file-progress[value="100"]::-moz-progress-bar {
    background-color: #2e7d32;
}

/* The remove (×) button in the top-right corner */
.attachment-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    display: none;
}
.attachment-close:hover {
    color: #333;
}

/* Status text (“Uploading…” / “Uploaded” / “Failed”) */
.upload-status {
    font-size: 0.8rem;
    color: #4a4a4a;
    margin-top: 0.25rem;
}
.attachment-preview {
    flex: 0 0 auto;
}

.file-list-chat-item {
    transition: left 0.4s cubic-bezier(.36,1.04,.89,.22), top 0.4s cubic-bezier(.36,1.04,.89,.22), transform 0.4s, opacity 0.4s;
}

.file-list-chat-item.to-center {
    left: 65vw !important;
    top: 15vh !important;
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0;
    pointer-events: none;
}

.pagination-link {
    border-radius: 10px;
    transition: all 0.25s ease;

    color: #00A1E0;
    border: 1px solid rgba(0, 161, 224, 0.4);
    background: transparent;
}

.pagination-link:hover {
    background-color: rgba(0, 161, 224, 0.1);
    border-color: #00A1E0;
    color: #00A1E0;
}

.pagination-link.is-current {
    background-color: #00A1E0;
    color: #fff;
    border-color: #00A1E0;
}