    /* Modern Persistent Button */
    .persistent-button {
      position: absolute;
      top: 20px;
      right: 20px;
      padding: 12px 24px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      z-index: 1000;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.5px;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
      position: relative;
    }
    
    .persistent-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
    }
    
    .persistent-button:hover::before {
      left: 100%;
    }
    
    .persistent-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    }
    
/*
    #btn-login {
      position: absolute;
      top: 20px;
      right: 20px;
      padding: 10px 20px;
      cursor: pointer;
      z-index: 2000; 
    }

    #btn-logout {
      position: absolute;
      top: 20px;
      right: 20px;
      padding: 10px 20px;
      cursor: pointer;
      z-index: 2000; 
    }
    */

    #btn-call-api{
      position: absolute;
      top: 20px;
      left: 250px;
      padding: 10px 20px;
      cursor: pointer;
      z-index: 2000; /* Ensure the button is above the A-Frame canvas */
    }

    #api-call-result{
      position: absolute;
      top: 100px;
      left: 250px;
      padding: 10px 20px;
      cursor: pointer;
      z-index: 2000; /* Ensure the button is above the A-Frame canvas */
    }

    .edit-settings-button {
      position: absolute;
      display: none;
      top: 60px;
      right: 20px;
      padding: 12px 24px;
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      color: white;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.5px;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      box-shadow: 0 8px 32px 0 rgba(240, 147, 251, 0.4);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1000;
    }
    
    .edit-settings-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px 0 rgba(240, 147, 251, 0.6);
    }
    
    /* Modern Enhanced Accordion */
    .accordion {
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(15px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 12px;
      cursor: pointer;
      padding: 16px 20px;
      width: 100%;
      text-align: left;
      outline: none;
      font-size: 14px;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      margin-bottom: 8px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      color: #1e293b;
    }

    /* Shimmer effect on hover */
    .accordion::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transition: left 0.6s;
    }

    .accordion:hover::before {
      left: 100%;
    }

    /* Hover and active states */
    .accordion:hover {
      background: rgba(255, 255, 255, 0.35);
      box-shadow: 0 8px 25px rgba(31, 38, 135, 0.3);
      transform: translateX(4px);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .accordion:active {
      transform: scale(0.98);
    }

    /* Modern Accordion Icon */
    .accordion::after {
      content: '+';
      font-size: 20px;
      font-weight: 600;
      color: #667eea;
      float: right;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Icon rotation for open state */
    .accordion.active::after {
      content: '−';
      transform: rotate(180deg);
      color: #f5576c;
    }

    .panel {
      padding: 0 16px;
      display: none;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      border-radius: 0 0 12px 12px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-top: none;
      overflow: hidden;
      margin-top: -1px;
    }
/*
    .settings-box {
      display: none;
      position: fixed;
      top: 50%;
      left: 0; 
      transform: translateY(-50%); 
      background-color: white;
      border: 1px solid #ccc;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      width: 300px;
      font-family: 'Roboto', sans-serif;
      font-size: 10px;
      overflow-y: auto; 
      max-height: 90vh; 
    }
    
*/
    /* Close button at top right */
    .close-button {
      position: absolute;
      top: 10px;
      right: 10px;
      display: block;
      padding: 10px;
      background-color: #f44336;
      color: white;
      border: none;
      cursor: pointer;
      text-align: center;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      font-size: 14px;
      line-height: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .close-button:hover {
      background-color: #d32f2f;
    }

    .close-button:focus {
      outline: none;
    }

    /* Basic container style for the chat area */
    #chatOutput {
      max-height: 2700px; /* Adjust based on your design */
      overflow-y: auto; /* Enable scrolling if content exceeds height */
      border: 1px solid #ddd;
      padding: 10px;
      background-color: #f9f9f9;
      height: 400px;
    }

    /* Style for chat messages to ensure alignment */
    .chat-message {
      display: flex;
      flex-direction: column;
      margin-bottom: 20px; /* Default space between messages */
    }

    /* Style for user messages (right-aligned) */
    .user-message {
      background-color: #e1ffc7; /* Light green background for user messages */
      border: 1px solid #b0d995;
      border-radius: 5px;
      padding: 15px; /* Padding inside the bubble */
      max-width: 75%; /* Adjust as needed */
      text-align: left;
      margin-left: auto; /* Pushes the message to the right */
      margin-right: 0;
    }

    .user-message .message-header {
      font-weight: bold;
      color: #000000; /* Green color for user */
      margin-bottom: 5px; /* Space between header and body */
      font-size: 11px;
    }

    .user-message .message-body {
      margin-top: 0px; /* Space between header and body */
    }

    /* Style for AI responses (left-aligned) */
    .ai-response {
      background-color: #d0e8ff; /* Light blue background for AI responses */
      border: 1px solid #a3c2f4;
      border-radius: 5px;
      padding: 15px; /* Padding inside the bubble */
      max-width: 75%; /* Adjust as needed */
      text-align: left;
      margin-left: 0;
      margin-right: auto; /* Pushes the message to the left */
    }

    .ai-response .message-header {
      font-weight: bold;
      color: #000000; /* Blue color for system */
      font-size: 11px;
      margin-bottom: 0px; /* Space between header and body */
    }

    .ai-response .message-body {
      margin-top: 5px; /* Space between header and body */
    }

    /* Space between user and AI messages specifically */
    .user-message + .ai-response,
    .ai-response + .user-message {
      margin-top: 20px; /* Space between messages of different types */
    }

    /* Optional: Style for the chat input area */
    .chat-input-container {
      display: flex;
      align-items: center; /* Vertically align items in the center */
      padding: 10px;
      border-top: 1px solid #ddd; /* Border at the top of the input area */
    }

    .chat-input-header {
      font-weight: bold;
      margin-bottom: 5px;
    }

    .chat-input {
      flex: 1; /* Allows input to take up available space */
      height: 40px; /* Adjust based on your design */
      margin-right: 10px; /* Space between input and button */
      margin-left: 0px;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 5px;
      box-sizing: border-box;
      font-family: 'Roboto', sans-serif;
      resize: none;
    }

    .chat-input-container button {
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      background-color: #007bff;
      color: white;
      cursor: pointer;
    }

    .chat-input-container button:hover {
      background-color: #0056b3;
    }

    #manualContent {
      display: none;
    }
    /* Centering the button */
    .button-container {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* Cool button style */
    .manualToggle {
      padding: 10px 20px;
      border: none;
      border-radius: 30px;
      background: linear-gradient(45deg, #6a11cb, #2575fc);
      color: white;
      font-size: 12px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      outline: none;
      margin-bottom: 15px;
      margin-top: 15px;
    }

    .manualToggle:hover {
      background: linear-gradient(45deg, #2575fc, #6a11cb);
      box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }

    .manualToggle:active {
      transform: translateY(2px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }






    /* Container for each field to keep label and input on the same line */
    .field-container {
      display: flex;
      align-items: center; /* Align items vertically centered */
      margin-bottom: 15px; /* Space between different field containers */
      
    }

    /* Style labels */
    .field-container label {
      flex: 2; /* Take up available space */
      margin-right: 40%; /* Space between label and input */
      font-family: 'Roboto', sans-serif;
      
    }

    /* Style input fields, sliders, and dropdowns */
    .field-container input[type="text"],
    .field-container input[type="range"],
    .field-container select {
      flex: 1; /* Take up more space compared to labels */
      padding: 2px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.1);
      font-family: 'Roboto', sans-serif;
    }

    .slider-container {
      display: inline-block;
      align-items: center; /* Vertically center items */
    }

    .slider-value {
      margin-right: 10px; /* Space between value display and slider */
      font-family: 'Roboto', sans-serif;
      width: 30px;
    }
    /* Style dropdown container */
    .dropdown-container {
      display: flex;
      align-items: center; /* Align items vertically centered */
      margin-bottom: 15px; /* Space between different field containers */
      width: 100%;
    }

    .dropdown-container label {
      flex: 1; /* Take up available space */
      margin-right: 10px; /* Space between label and dropdown */
      font-family: 'Roboto', sans-serif;
    }

    /* Style dropdowns */
    .dropdown-container select {
      flex: 2; /* Take up more space compared to labels */
      padding: 2px;
      width: 80%;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
      font-family: 'Roboto', sans-serif;
      font-size: 10px;
      height: 30px;
    }

       

      .close-btn {
          background-color: #F08080;
          border: none;
          padding: 10px;
          cursor: pointer;
          border-radius: 5px;
      }
    .entriesheader {
        font-size: 15px;
        font-weight: bold;
        margin-bottom: 20px;
        margin-top: 10px;
        color: #333;
    }

    .entries-container {
        flex: 1;
        margin-bottom: 20px;
        overflow-y: auto; /* Scrollable if needed */
    }

    .entry-item {
        display: flex;
        align-items: center; /* Vertical alignment */
        justify-content: space-between;
        padding: 10px;
        margin-bottom: 10px;
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 5px; /* Rounded corners */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .entry-item:hover {
        background-color: #f0f0f0;
    }

    .entry-item span {
        flex: 1;
        font-size: 16px;
        color: #555;
        margin-right: 20px;
    }

    .entry-item button {
        background-color: #007bff;
        border: none;
        color: white;
        padding: 4px 6px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 10px;
        transition: background-color 0.3s ease;
      margin-right: 5px
    }

    .entry-item button:hover {
        background-color: #0056b3;
    }

    .add-entry {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    .add-entry input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .add-entry button {
        background-color: #28a745;
        border: none;
        color: white;
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }

    .add-entry button:hover {
        background-color: #218838;
    }


#imagefieldcontainer {
    display: flex;
    flex-direction: column; /* Stack the elements vertically */
    align-items: stretch; /* Ensure the elements take the full width */
    gap: 20px; /* Space between the upload form and the images */
    margin: 20px;
}

/* Container for holding images */
#imageContainer {
  display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns of equal width */
    gap: 10px; /* Space between images */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Individual image styling */
#imageContainer img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

#imageContainer img:hover {
    transform: scale(1.05);
}

/* Upload container styling */
#uploadContainer {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Style for the form elements */
#uploadContainer form {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

/* Upload button */
#uploadContainer button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#uploadContainer button:hover {
    background-color: #45a049;
}

/* File input field */
#uploadContainer input[type="file"] {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1 !important;
  pointer-events: all !important;
  display: inline-block !important;
}