/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f7f7f8; /* Light background similar to ChatGPT */
}

/* Main Container */
.container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px; /* Or however wide you want the sidebar */
    height: 100vh; /* Full viewport height */
    
    background-color: #f0f0f0; /* Optional styling */
    padding: 10px;
}

.sidebar h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #6b6b6b; /* Soft gray for header text */
}

.sidebar-content {
    list-style: none;
    overflow-y: auto;
    height: 100%;
    padding-right: 10px;
}

.sidebar-content li {
    margin-bottom: 15px;
}

.sidebar-content li a {
    color: #333333; /* Dark gray for sidebar text */
    text-decoration: none;
    font-size: 1em;
    transition: color 0.2s;
}

.sidebar-content li a:hover {
    color: #000000; /* Darker hover effect */
}

/* Dropdown Menu for small screens */
.dropdown-menu {
    display: none;
    background-color: #f7f7f8; /* Light gray for dropdown */
    padding: 10px;
    text-align: center;
}

#menuToggle {
    background-color: #e0e0e0; /* Light grey for dropdown toggle button */
    color: #333333;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

#menuToggle:hover {
    background-color: #d1d1d1; /* Darker grey on hover */
}

/* Updated dropdown-content to handle scrolling in small screen */
.dropdown-content {
    display: none;
    list-style: none;
    margin-top: 10px;
    padding: 0;
    max-height: calc(100vh - 80px); /* Set max height for the dropdown */
    overflow-y: auto; /* Enable scrolling if content exceeds height */
}

.dropdown-content li {
    margin-bottom: 10px;
}

.dropdown-content li a {
    color: #3c3c3c;
    text-decoration: none;
    font-size: 1em;
}

.dropdown-content li a:hover {
    color: #000000;
}

.show {
    display: block;
}

/* Main Window */
.main-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* Top Bar with Dropdown and "Powered by AiWerkz" */
.top-bar {
    padding: 15px;
    background-color: #f7f7f8;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between; /* Aligns items to both ends */
    align-items: center;
}

.top-bar-left {
    font-size: 1em; /* Adjust font size for large screen */
    color: #333333;
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
}

.top-bar-right select {
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    height: 100%;
}

.chat-header {
    padding: 10px;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
    border-radius: 10px 10px 0 0;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
}

.chat-window {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #ffffff;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    background-color: #f7f7f8; /* Light background for input area */
    border-top: 1px solid #e0e0e0;
}

#chatInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: #ffffff;
}


.chat-input-area2 {
    display: flex;
    padding: 5px 15px;
    background-color: #f7f7f8;
    border-top: 1px solid #e0e0e0;
}

.chatInput2 {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: .8em;
    background-color: #ffffff;
    box-sizing: border-box;
}



#sendBtn {
    background-color: #10a37f; /* Green for send button */
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

#sendBtn:hover {
    background-color: #0f8d6c; /* Darker green on hover */
}

.user-message {
    background-color: #10a37f;
    color: white;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 12px;
    max-width: 75%;
    align-self: flex-end;
    font-size: 0.95em;
}






.instructions {
    background-color: #f7f7f8;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.instructions p {
    display: flex; /* Align items horizontally */
    align-items: center; /* Align the icon and text vertically */
    cursor: pointer; /* Show that it's clickable */
}

.toggle-icon {
    font-size: 1.5rem; /* Adjust size of the icon */
    cursor: pointer;
    user-select: none;
    margin-right: 10px; /* Space between icon and text */
    color: #10a37f; /* Use brand color for the icon */
    font-weight: bold; /* Bold to replicate <b> effect */
}

.instruction-content {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Expanded state for the content */
.instructions.expanded .instruction-content {
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-height: 500px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Styling for headings and lists */
.instructions h3 {
    font-size: 1rem; /* Smaller size for H3 */
    margin-bottom: 10px; /* Space below the heading */
    color: #10a37f; /* Brand color for heading */
}

.instructions h2 {
    font-size: 1.2rem; /* Larger size for H2 */
    margin-bottom: 10px; /* Space below the heading */
    color: #10a37f; /* Brand color for heading */
}


.instructions ol {
    padding-left: 20px; /* Indent the list */
    margin-bottom: 15px; /* Add space between list and next elements */
}

.instructions li {
    margin-bottom: 10px; /* Space between list items */
}

.instructions li strong {
    color: #10a37f; /* Use brand color for important words */
}

.instructions p {
    margin-top: 10px; /* Space above paragraphs */
    font-size: 1rem; /* Standard font size for paragraph */
    line-height: 1.6; /* Improve readability */
    color: #555; /* Lighter gray for paragraphs */
}











/* Responsive for small screens */
@media (max-width: 600px) {
    .container {
        display: flex;
        width: 100%;
        max-width: 1400px;
        height: 90vh;
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden; /* Ensure content overflows properly */
    }

    .sidebar {
        display: none; /* Hide sidebar on small screens */
    }

    .dropdown-menu {
        display: block; /* Show dropdown on small screens */
    }

    .main-window {
        width: 100%;
    }

    .chat-container {
        padding: 10px;
    }

    .top-bar-left {
        font-size: 0.8em; /* Reduce font size for smaller screens */
    }
}

/* Existing styles here... */

/* Media query for small screen portrait and landscape */
/* Enable scrolling */
@media (max-width: 800px), (max-height: 500px) {
    .container {
        flex-direction: column;
        width: 100%;
        height: 85vh;
        overflow-y: auto; /* Enable vertical scrolling on smaller screens */
    }

    .sidebar {
        display: none; /* Hide sidebar for small screens and landscape */
    }

    .dropdown-menu {
        display: block; /* Show dropdown on small screens */
    }

    .main-window {
        width: 100%;
        overflow-y: auto; /* Allow the main window to be scrollable */
    }

    .chat-container {
        padding: 10px;
        overflow-y: auto; /* Ensure chat content scrolls */
    }

    .top-bar-left {
        font-size: 0.8em; /* Adjust font size for smaller screens */
    }
}

/* Media query for landscape on small devices */
@media only screen and (max-device-width: 800px) and (orientation: landscape) {
    .container {
        flex-direction: column;
        width: 100%;
        height: 100vh; /* Adjust to 100% of the viewport height */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .chat-header {
        display: none; /* Hide the header */
    }

    .sidebar, .dropdown-menu, .main-window, .chat-container {
        width: 100%;
        overflow-y: auto; /* Ensure each part is scrollable */
    }
}



.logo-part1 {
    color: #fff;
    font-weight: bold;
    background-color: #000; /* Black background */
    padding: 1px 0 1px 5px; /* Padding: top and bottom 1px, left 5px, no right padding */
}

.logo-part2 {
    color: #82E0AA;
    font-weight: bold;
    background-color: #000; /* Black background */
    padding: 1px 5px 1px 0; /* Padding: top and bottom 1px, right 5px, no left padding */
}

.logo-part1, .logo-part2 {
    font-family: 'Your Google Font Name', sans-serif;
    font-size: 14px;
}




/* Style for clicked links */
/* General reset for dropdown and sidebar links */
.sidebar-content li a,
.dropdown-content li a {
    display: block; /* Makes the entire area clickable */
    text-decoration: none; /* Removes underline */
    color: #333; /* Default text color */
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Clicked link highlight for both formats */
.sidebar-content li a.clicked-link,
.dropdown-content li a.clicked-link {
    background-color: #4caf50; /* Bright green background */
    color: #ffffff; /* White text for contrast */
    font-weight: normal; /* Bold text for emphasis */
    border: 2px solid #4caf50; /* Green border */
    text-decoration: none; /* No underline */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Dropdown-specific tweaks */
.dropdown-content li a.clicked-link {
    padding: 10px; /* Larger padding for dropdown */
    margin: 5px 0; /* Spacing between dropdown items */
}

/* Hover effect on selected links */
.sidebar-content li a.clicked-link:hover,
.dropdown-content li a.clicked-link:hover {
    background-color: #45a049; /* Darker green on hover */
    color: #ffffff; /* Keep white text */
}

/* Extra debugging: Add a border to dropdown links for testing */
.dropdown-content li a {
    border: 1px dashed red; /* Optional for debugging */
}






#max_package_length_exceeded {
    display: none;
    color: red; /* Or any other style you want */
}



.help-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 2px 6px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.help-btn:hover {
  background-color: #0056b3;
}


.customer_logo_a {
  max-width: 50px;
  max-height: 50px;
  height: auto;
  width: auto;
}

.customer_logo_b {
  max-width: 50px;
  max-height: 50px;
  height: auto;
  width: auto;
}

/* Styles for the clickable link and the image inside */
.customer-logo-link {
  display: inline-block;
  max-width: 50px; /* Adjust if needed */
  max-height: 50px; /* Adjust if needed */
}

.customer-logo-image {
  display: block;
  max-width: 50px; /* Adjust if needed */
  max-height: 50px; /* Adjust if needed */
  height: auto;
  width: auto;
  border: none;
}