/* ========== Basic Structure ========== */
  /* body {
        background-color: #2b2b2b;
        color: #000000;
        font-family: system-ui, sans-serif;
        padding: 0px;
        display: flex;
        flex-direction: row;
      } */

      #diagonal-background {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: -1;
      }

      #scroll-decorations {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: visible;
      }

      #scroll-decorations .triangle-1 {
        position: absolute;
        top: 100vh;
        right: -5vw;
        width: 45vw;
        height: auto;
        opacity: 0.7;
      }
      
      #scroll-decorations .triangle-2 {
          position: absolute;
          top: 250vh;
          left: -5vw;
          width: 45vw;
          height: auto;
          opacity: 0.7;
      }

      #scroll-decorations .triangle-3 {
        position: absolute;
        top: 0vh;
        left: -5vw;
        width: 45vw;
        height: auto;
        opacity: 0.7;
      }

      .h3, h3 {
        text-align: center;
        font-weight: 100;
      }

      .terminal {
        background-color: #1e1e1e;
        padding: 10px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
      }

      .terminal h3 {
        color: #ffffff;
      }

      .chat-container {
        width: auto;
        overflow: hidden;
        transition: width 0.3s ease;
      }

      .chat-container.hidden {
        width: auto;
      }      

      .form-control.hidden {
        display: none;
      }

      #message-list {
        overflow-y: auto;
        height: 60vh;
      }

      /* Hide scrollbar for Chrome, Safari and Opera */
      #message-list::-webkit-scrollbar {
        display: none;
      }

      /* Hide scrollbar for IE, Edge and Firefox */
      #message-list {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
      }

      .input-container {
        transition: width 0.3s ease;
      }

      .mb-2 {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-start;
      }

      .form-label {
        position: relative;
        color: #D9E026;
        margin-bottom: 0px;
        width: 100%;
      }

      .btn {
        color: #D9E026;
        padding: 0%;
        
        --bs-btn-border-radius: 0.2rem;
      }

      .sidebar-custom-height {
        height: 93%;
        overflow-y: auto;
      }

      .form-control {
        background-color: #00000000;
        color: #fef1003d;
        border: 1px solid #fef10058;
        caret-color: #85aa00;
        padding: 10px;
        margin-top: 10px;
        max-height: 50vh;
      }

      .form-control:focus {
        background-color: #000000;
        color: #D9E026;
      }

      .edit-form-control {
        background-color: #00000000;
        color: #fef1003d;
        border: 1px solid #fef10058;
        caret-color: #85aa00;
        width: 100%;
        height: 10vh;
        text-align: start;
      }

      .edit-form-control:focus {
        color: #D9E026;
        outline: none;
      }      

      .edit-message-content {
        background-color: #005500; /* Keeping green shade for user messages */
        color: #D9E026; /* Bright green for user messages text */
        padding: 10px;
        border: 1px solid #D9E026;
        border-radius: 5px;
        margin: 0 0 20px 0;
        text-align: right;
        clear: both;
        max-width: 100%;
      }      

      .logo {
          width: 170px;
          float: right;
      }   

      .btn-primary {
        background-color: #005500;
        border: 0px solid #004f00;
        width: 100%;
        border-bottom-left-radius: 3px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
      }

      .btn-delete {
        background-color: #490d0d;
        border: 0px solid #FF5555;
        width: 100%;
        border-bottom-left-radius: 3px;
        border-top-left-radius: 3px;
      }      

      .btn-edit {
        position: absolute;
        left: -43px;
        top: 0px;
       }

       .btn-edit2 {
        -webkit-box-align: center;
        -webkit-box-pack: center;
        border-radius: 3px;
        height: 35px;
        width: 35px;
        color: #005500;
        user-select: none;
        background-color: rgb(43, 44, 54);
        border: 1px solid #005500;        
       }

      .btn-delete:hover {
        background-color: #FF5555;
      }      

      .btn-primary:hover {
        background-color: #00aa00;
      }

      .code-block {
        position:relative;
        font-family: 'Courier New', Courier, monospace;
        font-size: medium;
        word-break: normal;
        background-color: #171e15;
        padding: 1em;
        border-radius: 0.5rem;        
      }

      .copy-btn {
        position: relative;
        right: 30px;
        height: 30px;
        color: #FF5555;
        --bs-btn-padding-x: 0rem;
        --bs-btn-padding-y: 0rem;
      }

      .terminal-text {
        color: #D9E026;
        font-family: 'Courier New', Courier, monospace;
      }
      
      .alert {
        background-color: #1e1e1e;
        border: 1px solid #D9E026;
        color: #D9E026;
      }

     .system-message-content {
        background-color: #000000; /* Darker shade for system messages */
        color: #ffffff; /* Light red for system messages for contrast */
        padding: 10px;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
        border: 1px solid #D9E026;
        border-radius: 5px;
        margin: 0 0 20px 0;
        float: left;
        clear: both;
        max-width: 100%;      
      }
    
    .user-message-content {
        background-color: #000000; /* Keeping green shade for user messages */
        color: #D9E026; 
        padding: 10px;
        border: 1px solid #090a09;
        border-radius: 5px;
        margin: 0 0 20px 0;
        text-align: right;
        float: right;
        clear: both;
        max-width: 80%;
        /* display: flex;
        flex-direction: row; */
        align-items: flex-start;
        position: relative;
      }

    /* Add shadows to both system and user message boxes for more depth */
    .system-message-content, .user-message-content {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        word-wrap: break-word;
        overflow-wrap: break-word;
      }
    
      pre, .message-content pre {
        word-break: normal;  /* Changed from break-all */
        word-wrap: break-word;
        padding: 0em;
        background-color: #171e1500 !important;
        margin: 0 0 0px;
        color: #ffffff;
        border: 0px solid #ffffff;
      }

      /* Custom styles for Highlight.js */
      .hljs, pre code.hljs {
        display: inline-block;
        background-color: #171e15;
        /*color: #FF5555;*/
        font-family: system-ui, sans-serif;
        font-size: medium;
        border-radius: 0.5rem;
        /* padding: 0em; */
        text-wrap: pretty;
      }

      /* Custom styles for Highlight.js */
      pre code.text-block {
        background-color: #171e1500;
        padding: 0em;
      }

      .reload-btn {
        -webkit-box-align: center;
        -webkit-box-pack: center;
        font-weight: 400;
        /* padding: 0.25rem 0.75rem; */
        border-radius: 3px;
        height: 33px;
        margin: 0px 0px 10px 0px;
        color: #fef1003d;
        width: 40px;
        user-select: none;
        background-color: rgb(43, 44, 54);
        border: 1px solid #fef10058;
      }          

      .reload-btn.hidden {
        transform: rotate(180deg);        
      }        

      .reload-btn:hover {
        color:#fffcc2;
        border: 1px solid #D9E026;
      }

      .flex {
        display: flex;
        width: 100%;
        justify-content: center;
      }

      .flex-col {
        flex-direction: column;
      }

      .flex-1 {
        flex: 1 1 0%;
      }

      .overflow-hidden {
        overflow: hidden;
      }

      .w-full {
        max-width: 750px;
        margin: auto;
      }

      .h-full {
          height: 100vh;
      }  
      
      form.htmx-swapping {
        opacity: 0;
        transition: opacity 1s ease-out;
      }      

      .subject-list {
        height: 100%;
        overflow-x: hidden;
      }

      /* For Webkit browsers */
      ::-webkit-scrollbar {
        width: 12px;
        background-color: #1e1e1e; /* Match the terminal background color */
      }

      ::-webkit-scrollbar-thumb {
        background-color: #D9E026; /* Terminal green color */
        border-radius: 10px;
        border: 2px solid #1e1e1e; /* Add a border to blend with the background */
      }

      ::-webkit-scrollbar-thumb:hover {
        background-color: #D9E026; /* Slightly darker green on hover */
      }

      ::-webkit-scrollbar-track {
        background-color: #1e1e1e; /* Match the terminal background color */
      }

      /* For Firefox */
      * {
        scrollbar-width: thin;
        scrollbar-color: #D9E026 #1e1e1e;
      }

      /* Custom scrollbar for all other elements */
      .scrollbar-custom::-webkit-scrollbar {
        width: 12px;
        background-color: #1e1e1e; /* Match the terminal background color */
      }

      .scrollbar-custom::-webkit-scrollbar-thumb {
        background-color: #D9E026; /* Terminal green color */
        border-radius: 10px;
        border: 2px solid #1e1e1e; /* Add a border to blend with the background */
      }

      .scrollbar-custom::-webkit-scrollbar-thumb:hover {
        background-color: #D9E026; /* Slightly darker green on hover */
      }

      .scrollbar-custom::-webkit-scrollbar-track {
        background-color: #1e1e1e; /* Match the terminal background color */
      }

      /* Hide scrollbar by default */
      .scrollbar-custom {
        scrollbar-width: none; /* For Firefox */
        -ms-overflow-style: none; /* For Internet Explorer and Edge */
      }

      /* Hide scrollbar for Webkit browsers */
      .scrollbar-custom::-webkit-scrollbar {
        display: none;
      }

      /* Show scrollbar on hover */
      .scrollbar-custom:hover {
        scrollbar-width: thin; /* For Firefox */
      }

      .scrollbar-custom:hover::-webkit-scrollbar {
        display: block;
        width: 12px;
        background-color: #1e1e1e; /* Match the terminal background color */
      }

      .scrollbar-custom:hover::-webkit-scrollbar-thumb {
        background-color: #D9E026; /* Terminal green color */
        border-radius: 10px;
        border: 2px solid #1e1e1e; /* Add a border to blend with the background */
      }

      .scrollbar-custom:hover::-webkit-scrollbar-thumb:hover {
        background-color: #00cc00; /* Slightly darker green on hover */
      }

      .scrollbar-custom:hover::-webkit-scrollbar-track {
        background-color: #1e1e1e; /* Match the terminal background color */
      }

      .cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(200%);
        background-color: #0c0c0c;
        padding: 15px 25px;
        font-family: 'OXANIUM', sans-serif;
        border: 1px solid #dae02647;
        z-index: 999999;
        max-width: 90%;
        width: 400px;
        transition: transform 0.3s ease-in-out;
      }
      
      .cookie-banner.show {
        transform: translateX(-50%) translateY(0);
      }
      
      .cookie-banner p {
        color: #fff;
        font-size: 14px;
        margin: 0;
        text-align: center;
        line-height: 1.4;
      }
      
      .cookie-banner .buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
      }
      
      .cookie-banner .btn {
        padding: 8px 20px;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.3s ease-in-out;
      }
      
      .cookie-banner .btn-accept {
        background-color: #D9E026;
        color: #0c0c0c;
      }
      
      .cookie-banner .btn-accept:hover {
        background-color: #fff;
        color: #0c0c0c;
      }
      
      .cookie-banner .btn-decline {
        background-color: transparent;
        color: #fff;
        border: 1px solid #fff;
      }
      
      .cookie-banner .btn-decline:hover {
        background-color: #fff;
        color: #0c0c0c;
      }    /* CSS for mobile screens */

      .wrap-sticky{
        position:inherit;      
      }

    @media only screen and (max-width: 600px) {
        .sidebar {
          width: 70vw;
        }
        .sidebar-btn {
          width: 15vw;
        }    
        .sidebar-btn.hidden {
          width: 10px;
        }   
        .terminal {
          padding: 5px;
        }
        .flex {
          justify-content: flex-start;
        }
        .image {
          max-width: 25rem;        
        }
        .logo {
          width: 150px;
          height: 55px;
          ;
        }
        .h-full {
          height: 88vh;
        }
        .speech-modal-content {
          width: 90%;
          margin: 10% auto;
        }
        
        .mobile-friendly-button {
          font-size: 16px;
        }
        
        nav.navbar.bootsnav {
            background-color: transparent !important;
            border: none;
        }

        nav.navbar.bootsnav .navbar-toggle {
            background-color: transparent;
            border: 1px solid #D9E026;
        }

        nav.navbar.bootsnav .navbar-collapse {
            background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
            backdrop-filter: blur(5px); /* Optional: adds a blur effect */
        }
    }

      /* Language Flag Dropdown Styling */
      .language-flag .dropdown-menu {
        min-width: 55px;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
      }

      .language-flag .dropdown-menu > li > a {
          border-top: none !important;
          border-bottom: none !important;
      }      

      @media (min-width: 1024px) {
        nav.navbar.bootsnav li.dropdown ul.dropdown-menu {
            background-color: transparent; 
            border: none;  /* Match your yellow accent color */
            width: 55px;
            margin-top: 0;
            border-radius: 0px;
            left: 11% !important;          
        }


      }

      /* Mobile styles */
      @media only screen and (max-width: 600px) {
        #scroll-decorations .triangle-1,
        #scroll-decorations .triangle-2,
        #scroll-decorations .triangle-3 {  /* Added triangle-3 to mobile styles */
          width: 85vw;
          opacity: 0.5;
        }
        
        #scroll-decorations .triangle-1 {
          right: -15vw;
        }
        
        #scroll-decorations .triangle-2,
        #scroll-decorations .triangle-3 {  /* Added triangle-3 positioning */
          left: -15vw;
        }
      }

      /* Add overflow control to prevent horizontal scrolling */
      body {
        overflow-x: hidden;  /* Prevent horizontal scroll */
      }

      #scroll-decorations {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: visible;  /* Changed from hidden to visible */
      }

      @media only screen and (max-width: 600px) {
        .sidebar {
          width: 70vw;
        }
        .sidebar-btn {
          width: 15vw;
        }    
        .sidebar-btn.hidden {
          width: 10px;
        }   
        .terminal {
          padding: 5px;
        }
        .flex {
          justify-content: flex-start;
        }
        .w-full {
          width: 100%;
          overflow-x: hidden;
        }
      }

      .corner-borders {
        position: relative;
        padding: 20px;
      }

      .corner-borders::before,
      .corner-borders::after {
        content: '';
        position: absolute;
        width: 30%;  /* Adjust this percentage to control line length */
        height: 30%; /* Adjust this percentage to control line length */
        pointer-events: none;
      }

      .corner-borders::before {
        top: 0;
        left: 0;
        border-top: 1px solid #dae02647;
        border-left: 1px solid #dae02647;
      }

      .corner-borders::after {
        bottom: 0;
        right: 0;
        border-bottom: 1px solid #dae02647;
        border-right: 1px solid #dae02647;
      }

      .intro-text {
        color: #ffffff;
        margin-left: 30%;
        padding-left: 30px;
        padding-top: 30px;
      }
