/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#page-title {
    color: var(--text-color);
    margin-right: auto;
}
&::-webkit-scrollbar {
    display: none;
  }
body {
    font-family: 'Inter', Arial;
    display: flex;
    background-image: var(--background-color);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
    align-items: center;
}

/* Global Default Variables */

/* Color Scheme Variables */
@media (prefers-color-scheme: dark) {
    :root {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        --background: #000000;
        --background-color: black;
        --main: rgba(100, 100, 100, 0.3);
        --dark: rgba(10, 10, 10, 0.3);
        --sub: rgba(266, 266, 266, 0.05);
        --border: rgb(255, 255, 255, 0.1);
/* Removed animations for visual simplicity: .outer-square, .input-container, .tile */

/* If you need to re-enable animations in the future, restore the rules below and their keyframes. */
        --overlay: rgba(0, 0, 0, 0.4);
        --hover: rgba(255, 255, 255, 0.1);
        --shadow: rgba(0, 0, 0, 0.15);
        --text-color: white;
        --border-thickness: 1.5px;
        --pressed: rgba(255, 255, 255, 0.4);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --background: #e1e1e1;
        --background-color: #e1e1e1;
        --main: rgba(255, 255, 255, .4);
        --sub: rgba(255, 255, 255, .4);
        --border: rgb(0, 0, 0, 0.075);
        --overlay: rgba(0, 0, 0, 0.1);
        --hover: rgba(0, 0, 0, 0.1);
        --shadow: rgba(0, 0, 0, 0.15);
        --text-color: rgb(0, 0, 0);
        --border-thickness: 1px;
        --pressed: rgba(255, 255, 255, 0.6);
    }
}

html {
    height: 100% !important;
}
/* Layout Containers */
#sidebar-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    gap: 8px;
    position: fixed;
    z-index: 2;
    left: 0px;
    height: 100%;
    top: 0px;
}

.no-results {
    color: var(--text-color);
    text-align: center;
    padding: 16px;
    width: 1050px;
}

#topbar-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 8px;
    gap: 8px;
    position: fixed;
    z-index: 1;
    top: 0px;
    width: 100%;
    right: 0px;
}

#bar-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    z-index: 1;
    width: 100%;
}

#bottombar-container {
        display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 26px;
    gap: 8px;
    position: fixed;
    z-index: 1;
    bottom: 0px;
    width: 100%;
    right: 0px;
}
/* Sidebar Styles */
.sidebar {
    gap: 4px;
    background-color: var(--main);
    color: var(--text-color);
    height: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    border-radius: 24px;
    width: auto;
    align-items: center;
    width: 48px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px 0 var(--shadow);
    transition: scale 0.3s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.3s cubic-bezier(0.2, 1, 0.4, 1);
    outline: var(--border-thickness) solid var(--border);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2), /* The "Edge" */
              0 8px 32px rgba(0, 0, 0, 0.3);        /* The "Lift" */
}



#expanded {
    width: auto;
}
#expanded a {
    display: flex;
    justify-content: flex-start;
}

.sidebar .navigation-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar a.navigation img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sidebar a.navigation svg {
    width: 20px;
}

/* Topbar Styles */
.topbar {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--main);
    border-radius: 24px;
    height: 48px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px 0 var(--shadow);
    transition: scale 0.3s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.3s cubic-bezier(0.2, 1, 0.4, 1);
      outline: var(--border-thickness) solid var(--border);
      box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, 0.2), /* The "Edge" */
              0 8px 32px rgba(0, 0, 0, 0.3);        /* The "Lift" */
}


textarea.action,
input.action {
    flex: 1;
    padding: 12px 12px;
    border: none;
outline: none;
    border-radius: 30px;
    resize: none;
    font-size: 0.9rem;
    height: 40px;
    background-color: transparent;
    color: var(--text-color);
    min-width: 0;
}
textarea.action:focus,
input.action:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Navigation Elements */
.sidebar a.navigation,
.topbar a.navigation {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
    font-size: 18px;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    display: flex;
    height: 40px;
    width: 100%;
    min-width: 40px;
    transition: scale 0.3s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.3s cubic-bezier(0.2, 1, 0.4, 1);
}

.topbar a.navigation svg {
    margin: 0;
    object-fit: contain;
}



#main-header {
            width: 100%;
    max-width: 1600px;
    text-align: left;
    font-size: 48px;
    margin: 20px 50px;
    color: var(--text-color);
      }

span {
    padding: 12px;
    color: var(--text-color);
}

.topbar a.navigation:hover,
.sidebar a.navigation:hover {
    background: var(--hover);
}

.topbar a.navigation:active,
.sidebar a.navigation:active {
    scale: 1.15;
    background-color: var(--pressed);
}

#topbar-container.chat {
    width: calc(100% - 236px);
}
#bottombar-container.chat {
    width: calc(100% - 236px);
}

div a.navigation:active,
div a.navigation:active {
    border: none;
outline: none;
    background-color: transparent;
}

/* Logo Styles */
.topbar .logo-title,
.sidebar .logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 0px;
    gap: 5px;
    min-width: 40px;
}

.topbar .logo-title img,
.sidebar .logo-title img {
    width: 30px;
    height: 30px;
}


#title.topbar,
#main-logo.topbar,
#logo.topbar {
    flex-direction: row;
    top: 20px;
    bottom: auto;
    transform: translateY(0);
    border: none;
outline: none;
    gap: 8px;
}

#exit {
    top: auto;
    bottom: 20px;
    transform: translateY(0);
    border: none;
outline: none;
}

#title.topbar,
#main-logo.topbar,
#logo.topbar {
    border: none;
outline: none;
    width: auto;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

a.logo-title.secondary {
    display: none;
    text-decoration: none;
    color: var(--text-color);
}
/* Blob Elements */
#blobbig {
    box-shadow: 0 0 150px 100px var(--accent-color);
    border-radius: 100%;
    height: 45vh;
    width: 75vw;
    opacity: 0.15;
    background-image: radial-gradient(farthest-corner at 50% 50%, #ffffff, var(--color4));
    background-blend-mode: multiply;
    filter: blur(50px) contrast(1.1);
    position: fixed;
    transform: translate(-50%, -35%);
    left: 47vw;
    top: 100vh;
    --blob-opacity: 0.15;
}

#blob {
    box-shadow: 0 0 150px 100px var(--accent-color);
    border-radius: 50%;
    height: 290px;
    width: 290px;
    background-image: radial-gradient(farthest-corner at 50% 50%, #ffffff, var(--color3));
    background-blend-mode: multiply;
    filter: blur(50px) contrast(1.1);
    position: fixed;
    transform: translate(-50%, -50%);
    left: 47vw;
    top: 100vh;
    --blob-opacity: 1;
}

#blobsmall {
    box-shadow: 0 0 150px 50px var(--color4);
    border-radius: 50%;
    height: 50px;
    width: 340px;
    background-image: radial-gradient(farthest-corner at 50% 50%, #ffffff, var(--color3));
    background-blend-mode: multiply;
    filter: blur(50px) contrast(1.2);
    position: fixed;
    transform: translate(-50%, -50%);
    left: 60vw;
    top: 100vh;
    --blob-opacity: 1;
}

#blobtop {
    box-shadow: 0 0 1px 20px var(--color4);
    border-radius: 50%;
    height: 230px;
    width: 20px;
    background-image: radial-gradient(farthest-corner at 50% 50%, #ffffff, var(--color3));
    background-blend-mode: multiply;
    filter: blur(50px) contrast(1.1);
    position: fixed;
    transform: translate(-50%, -50%);
    rotate: -20deg;
    left: 41.6vw;
    top: calc(89vh - 200px);
    --blob-opacity: 1;
}

#blobbig,
#blob,
#blobsmall,
#blobtop {
    opacity: 0;
    animation: blobFadeInUp 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#blobbig {
    animation-delay: 0s;
}

#blob {
    animation-delay: 0.2s;
}

#blobsmall {
    animation-delay: 0.6s;
}

#blobtop {
    animation-delay: 0.1s;
}

/* Utility Classes */
.divider {
    width: 100%;
    height: 1px;
    margin: 0;
    background-color: var(--border);
    border: none;
outline: none;
}

#active {
    color: #ffffff;
    background: var(--accent-color);
    border: var(--border-thickness) solid var(--border);
}

/* Animations removed per request: entrance animations for tiles and squares were disabled. */

/* Iframe */
iframe {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: calc(100% - 64px);
    border: none;
outline: none;
    z-index: 0;
}


/* Keyframes */
@keyframes blobFadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 30%);
    }
    100% {
        opacity: var(--blob-opacity, 1);
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Removed keyframes: fadeInUp and tileFadeInUp were removed to disable entrance animations.
   If you want to restore them later, re-add the original @keyframes blocks. */




















.sidebar a.action img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sidebar a.action,
.topbar a.action {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
    font-size: 18px;
    border-radius: 50px;
    margin-left: auto;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 8px;
    height: 40px;
    min-width: 40px;
    transition: scale 0.3s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.3s cubic-bezier(0.2, 1, 0.4, 1);
}

.sidebar a.action svg, 
.topbar a.action svg {
    transition: scale 0.3s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.3s cubic-bezier(0.2, 1, 0.4, 1);
}

.topbar a.action svg {
    margin: 0;
    object-fit: contain;
}

.topbar a.action span,
.sidebar a.action span {
    display: none;
}

.bottombar.action:active,
.topbar.action:active,
.sidebar.action:active {
    scale: 1.05;
    background-color: var(--pressed);
}

.topbar.action#search:hover,
.bottombar.action#search:hover,
.sidebar.action#searchHover {
    scale: 1.0;
}

.bottombar button.action:active,
.topbar a.action:active,
.sidebar a.action:active {
    scale: 1.1;
}

div a.navigation:active,
div a.navigation:active {
    border: none;
outline: none;
    background-color: transparent;
}


@media (max-width: 500px) {
    textarea.action,
input.action {
    padding: 12px 4px;
    min-width: 0;
}

    #main-logo {
        display: none;
    }
    #menu.topbar.action:has(a[href="/index.html"]) {
        display: none !important;
    }
    a#fullscreen.action {
        display: none !important;
    }
    iframe {
            position: fixed;
    top: 64px;
    right: 0;
    width: 100%;
    height: calc(100% - 64px);
    border: none;
    outline: none;
    z-index: 0;
    }

    #outer-square {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        outline: none !important;
        border-radius: 0px !important;
    }

    #escape {
        display: none;
    }

    #topbar-container,
    #bottombar-container {
        width: 100% !important;
    }
    div#topbar-container.chat {
    display: flex !important;
    justify-content: space-between !important;
    }

    body {
        margin: 72px 16px 72px 16px;
        padding: 0;
    }


    #bottombar-container,
    #sidebar-container.main {
        display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    position: fixed;
    z-index: 1;
    width: 100%;
    right: 0px;
    top: auto;
    bottom: 0px;
    height: auto;
    padding: 26px;
    }
    
    #bottombar-container.chat,
    #bottombar-container {
        width: 100%;
    }
    .sidebar#main {
        z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    max-width: 1440px;
    width: fit-content;
    background: var(--main);
    border-radius: 32px;
    height: 48px;
    box-shadow: 0 20px 50px 0 var(--shadow);
    transition: scale 0.3s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.3s cubic-bezier(0.2, 1, 0.4, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    outline: var(--border-thickness) solid var(--border);
    flex-direction: row;
    }
}


/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tile scale animation */
@keyframes tileScale {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}
div#topbar-container:not(.settings) {
    display: none;
}

body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0px 0px 0px 0px;
  gap: 25px; /* 20px gap between containers */
  --body-margin: 195px; /* Default body margin */
  margin: 0px 16px 0px 16px; /* Add some padding to the body */
  min-height: 100%;
}

/* ...existing code... */


/* ...existing code... */

/* Outer square styling */
.outer-square {
  position: relative;
        display: grid;
    gap: 150px;
    max-width: 1600px;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.section-header {
  color: var(--text-color);
  width: 100%;
  height: 48px;
    padding: 8px;
}

/* Tile styling */
.tile {
  display: flex;
  gap: 8px;; /* 10px gap between inner square and title */
  flex-direction: column; /* Stack children vertically */
  width: 90px;
  animation: tileScale 0.4s cubic-bezier(0.2, 1, 0.4, 1);
  transition: scale 0.3s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.3s cubic-bezier(0.2, 1, 0.4, 1);
}

.grid-container {
         align-items: center;
    display: flex;
    flex-direction: column;
    gap: 75px;
    min-height: 100%;
    max-height: 100vh;
    overflow: scroll;
    padding: 75px 50px;
}
/* Inner square styling */
.inner-square {
  height: 90%; /* Takes up 90% of the tile's height */
  background-color: var(--main); /* Inner square background color */
  border-radius: 24px; /* Slightly smaller border radius than the tile */
  width: 90px; /* Fixed tile width */
  height: 90px; /* Fixed tile height */
  background-position: center center;
  background-size: 140%;
  box-shadow: 0 20px 50px 0 rgba(0, 0, 0, .1);
  outline: var(--border-thickness) solid var(--border);
  transition: all 0.1s ease-out;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), /* The "Edge" */
              0 8px 32px rgba(0, 0, 0, 0.3);        /* The "Lift" */
}

.inner-square:hover,
.inner-square:focus {
  border: 5px solid white;
}

/* Title styling */
.title {
  display: flex;
  align-items: center; /* Center the title vertically */
  justify-content: center; /* Center the title horizontally */
  font-size: 14px; /* Adjust font size as needed */
  color: var(--text-color); /* Title text color */
  text-align: center; /* Center the text */
  padding: 8px;;
}
@media (max-width: 1080px) {
    #expanded.sidebar.navigation span {
    display: none;
  }
  #expanded a {
    justify-content: center;
  }
  .content {
    margin-left: 64px;

  }
  #topbar-container.settings {
    width: calc(100% - 64px) !important;
  }
}
/* Responsive grid columns */

