body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    color: black; /* White text for readability on dark background */
    background: radial-gradient(circle, #382E57, #1A1A1A, #000000);
    background-size: 100%; /* Large size to allow for the 'movement' */
    /* animation: backgroundShift 5s ease infinite; Adjust timing as needed */
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
.editor-wrapper {
    flex-grow: 1; /* This will make the wrapper take up all available space */
    display: flex;
    justify-content: center;
    align-items: center;
  }

.editor-container {
    display: flex;
    flex-direction: row;
    height: 90vh;
    width: 90vw;
    margin-top: 2vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.main-content {
    background: #fff;
    width: 75%;
    display: flex;
    flex-direction: column;
    z-index: 0;
}

.toolbar {
    display: flex;
    /* Light grey background */
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    /* border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px; */
    /* border-bottom: none; */
    /* Border to match the buttons */
    padding: 10px 5px 10px 10px;
    /* Some padding around the buttons */
    margin-bottom: 5px;
    margin-top: 5px;
}

.toolbar-button {
    background: #fff;
    /* White background for buttons */
    border: 1px solid #ddd;
    /* Light border for the buttons */
    padding: 8px 10px;

    color: #6f6b7D;
    
    gap: 10px;
    /* Padding inside the buttons */
    border-radius: 4px;
    /* Rounded corners for the buttons */
    cursor: pointer;
    /* Cursor to indicate clickable buttons */
    margin-right: 4px;
    /* Margin between buttons */
}

.toolbar-button:hover,
.toolbar-button.active {
    /* Style for hover and active state */
    background: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
    /* Slightly darker background on hover/active */
}

.material-icons {
    vertical-align: middle;
    /* Align icons vertically with text */
}


.content {
    padding: 20px;
    overflow-y: auto;
}

.content p {
    margin: 0 0 20px 0;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.content p:hover {
    border: 1px solid #ccc;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.sidebar {
    width: 25%;
    background: white;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

.suggestion-header {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center; /* Center the header text */
}

.suggestion {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.suggestion:hover {
    background: #efefef;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.editable-section {
    box-sizing: border-box;
    width: calc(100% - 3px); /* Adjust for the width of the resize handle */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 5px;
    background: #fff;
    /* Add a background color for better visibility */
    line-height: 1.5;
    z-index: 2;
    /* Adjust as needed, 1.5 is a common choice */
}

/* Style for the placeholder div */
.placeholder {
    border: 2px dashed #ccc;
    padding: 10px;
    margin-bottom: 5px;
    background: #f8f8f8;
    /* Light background to indicate potential drop */
}

/* Highlight the potential drop target */
.over {
    border: 2px dashed #888;
}

.centered-content {
    max-width: 95%;
}

.paraphrase-group {
    display: flex;
    align-items: center;
  }

  @keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 0, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 0, 255, 1); }
    100% { box-shadow: 0 0 5px rgba(0, 0, 255, 0.5); }
}

.glowing {
    animation: glow 1.5s ease-in-out infinite;
}
  
.main-content, .sidebar {
    overflow-y: auto; /* Add scroll to main content and sidebar */
}

.main-content {
    /* Existing styles */
    height: 100%; /* Ensure it takes full height of its container */
}

.sidebar {
    /* Existing styles */
    height: 100%; /* Ensure it takes full height of its container */
}

.resize-handle {
    background-color: #ccc;
    cursor: ew-resize;
    width: 5px;
    height: 100%;
}

/* Adjust the main content and sidebar to be more flexible */
.main-content, .sidebar {
    flex-grow: 1;
    flex-basis: 0;
    overflow: auto; /* Add scroll */
}

.editor-container {
    display: flex;
    /* Adjustments to allow resizing */
    flex-direction: row;
    align-items: stretch;
}

.main-content, .sidebar {
    flex: 0 0 auto; /* Set flex-grow to 0, flex-shrink to 0, and flex-basis to auto */
    overflow: auto; /* Allows scrolling */
}

#editor, #response-editor {
    overflow-y: auto;
}

#editor-section {
    display: flex;
    flex-direction: column;
    height: auto;
}

#suggestions-container {
    height: 300px; /* Adjust the height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
}

/* Chat container */
.chat {
    padding: 10px;
    background: #F8F8F8;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Input field */
.chat input {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-top: 0px;
    box-sizing: border-box;
}

/* Container for messages */
.chat-messages {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
}

/* Styling for individual messages */
.chat-message {
    background: black;
    color: white;
    margin-top: 5px;
    padding: 8px 12px;
    border-radius: 18px;
    margin-bottom: 8px;
    max-width: 75%;
    word-wrap: break-word;
}

/* Differentiating user messages */
.chat-message.user {
    background: black;
    color: white;
    margin-left: auto;
}

/* Differentiating server (assistant) messages */
.chat-message.server-response {
    background: #FFFFFF;
    color: black;
    margin-right: auto;
}

/* Chat header styling */
.chat-header {
    font-size: 16px; /* Choose a size that fits your design */
    font-weight: bold;
    margin-bottom: 0px; /* Spacing between header and message area */
    text-align: center; /* Center the header text */
}

.suggestions {
    padding: 10px;
    background: #f9f9f9;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-messages-resize-handle {
    margin-top: 5px;
    height: 2px;
    background-color: #ccc;
    cursor: ns-resize; /* Cursor indicates resizable area */
    width: 100%;
}

.suggestions-resize-handle {
    margin-top: 5px;
    height: 2px;
    background-color: #ccc;
    cursor: ns-resize; /* Indicates the resize action */
    width: 100%;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

#chat-input {
    flex-grow: 1; /* Ensure input field takes up available space */
    padding-right: 30px; /* Make room for the icon inside the input field */
}

#clear-chat {
    position: absolute;
    right: 10px; /* Adjust based on your design */
    cursor: pointer;
    color: #ccc; /* Adjust the color as needed */
}

.title-section {
    background-color: #f0f0f0;
    border-radius: 10px; /* Add this line to curve the borders */

}

.title-section h1 {
    margin: 0;
    padding: 15px;
    margin-left: 10px;
    font-size: 20px;
    border-radius: 10px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.save-btn {
    border: 1px solid #D1D5DB; /* Soft border color */
    background-color: #FFFFFF; /* Light background */
    color: #4A5568; /* Softer text color */
    height: 40px; /* Adjusted to make it taller */
    display: flex;
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    border-radius: 16px;
    cursor: pointer;
    padding: 5px 25px; /* Added padding for space around text */
    margin-right: 10px;
    font-size: 16px; /* Make the text more readable */
    font-weight: 500; /* Medium weight */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
}

/* Optional hover effect */
.save-btn:hover {
    background-color: #F3F4F6; /* Light gray background on hover */
    color: #000000; /* Darker text on hover */
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.placeholder {
    border: 4px dashed #aaa;
    margin: 4px 0;
    background-color: #f0f0f0;
    /* Adjust the height dynamically via JavaScript */
}

#text-selection-tooltip {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
    gap: 10px; /* Adds space between buttons */
}

#text-selection-tooltip button {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center; /* Aligns icon and text */
    gap: 5px; /* Space between icon and text */
    width: 120px; /* Ensures uniform width for all buttons */
    justify-content: center; /* Centers text and icon within the button */
    text-align: center; /* Ensures text is centered, useful if it wraps */
}

#text-selection-tooltip button:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tooltip-icon {
    font-size: 18px; /* Adjust size of emoji/icons */
}

.onlineRs {
    padding: 10px;
    background: #f9f9f9;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.onlineR-header {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center; /* Center the header text */
}

.onlineR {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.onlineR:hover {
    background: #efefef;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

#onlineR-container {
    height: 200px; /* Adjust the height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
}

.onlineR-resize-handle {
    margin-top: 5px;
    height: 2px;
    background-color: #ccc;
    cursor: ns-resize; /* Indicates the resize action */
    width: 100%;
}

#mobileWarning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000; /* Ensure it covers other content */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
}

.warning-content {
    text-align: center;
    max-width: 80%;
}

.warning-content button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

#suggestion-tooltip {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
    max-width: 400px; /* Maximum width of the tooltip */
    display: none; /* Initially hidden */
    max-height: 200px; /* Set a maximum height */
    overflow-y: auto; /* Enable scrolling for overflow content */
}

#suggestion-tooltip .tooltip-content {
    color: #333;
    text-align: center; /* Centers the text within the tooltip */
}

 
/* Navbar Styles */
.navbar {
    margin-top: 2%;
    background-color: #262527; /* Dark background for navbar */
    padding: 1rem 1.5rem; /* Add padding to navbar */
    border-radius: 10px; /* Rounded edges */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    width: 80%;
  }
  
  
  /* Google Sign-In Button */
  .gsi-material-button {
    background-color: white; /* White background for Google sign-in */
    border: none;
    padding: 10px 20px;
    border-radius: 15px; /* Rounded corners */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
  }
  
  .gsi-material-button:hover {
    background-color: #f8f8f8; /* Light grey on hover */
  }
  
  .gsi-material-button .gsi-material-button-icon svg {
    height: 20px;
    margin-right: 8px;
  }
  
  .gsi-material-button .gsi-material-button-contents {
    color: black; /* Black text for Google sign-in */
    font-weight: 500;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        gap: 10px; /* Space between items when stacked */
    }
    
    .btn-pricing, .gsi-material-button {
        margin-right: 0;
        margin-bottom: 10px; /* Add spacing between buttons */
    }
  }
