.editor-body {
  background-color: #17191a;
}

.topic-body {
    transition: margin-left 0.5s;
    font-family: sans-serif;
}

#black-bar {
    position: fixed;
    right: 0;
    top: 0px;
    width: 50px;
    height: 100%;
    z-index: 1;
    background-color: #17191a;
}

.topic-content {
    width: 100%;
    justify-content: center;
    border:1px solid lightgray;
    background-color: white;
}

/* icon dropdown selector */
.custom-select {
    width: 200px;
    position: relative;
}

.options-container {
    display: none;
    position: absolute;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.option {
    padding: 10px;
    background-color: white;
    cursor: pointer;
}

.option:hover {
    background-color: #f1f1f1;
}

.selected-value {
    padding: 10px;
    background-color: white;
    border: 1px solid #ccc;
    cursor: pointer;
}







#topic-background {
    position: relative;
    background-color: #f1f1f1;
    padding-bottom: 50px;
}



.title-container {
  display: none;
  width: 100%;
}

.no-top-margin {
  margin-top: 0 !important;

}

.topic-title {
    width: 40%;
    margin-left: 15px;
    margin-top: 30px;
    border: 1px solid lightgrey;
    padding: 10px 7px;
}

.topic-title:focus {
    border: 1px solid #2c3e50;
    outline: 0;
}

#topic-divider {
    margin-top: 25px;
    border-top: 1px solid lightgrey;
}

.header-div {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    height: 90px;
}

.header {
    font-size: small;
}

#title-div {
    font-size: x-large;
}

#description-div {
    width: 30%;
    display: flex;
    flex-direction: row;
}

#tag-div {
    width: 15%;
    height: 30px;
    display: flex;
    flex-direction: row;
}

.placeholder {
    border: none;
    background: transparent;
    color: white;
    height: 30px;
    cursor: text;
    border-bottom: 1px solid lightgrey;
    padding-left: 0px;
    margin-right: 3vw;
}

.placeholder:focus {
    border-bottom: 2px solid #2c3e50;
    outline: 0;
}

#ellipsis {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 40px;
    height: 30px;
    width: 30px;
    margin-top: 10px;
}

.material-symbols-outlined {
    color: black;
    cursor: pointer;
    padding: 5px 3px;
    float: right;
    font-size: 30px;
    margin-top: 30px;
    margin-left: 5px;
}

.textarea-div {
    resize: vertical;
    margin: 5px;
    width: 100%;
    height: 300px;
    padding: 5px;
    border: 1px solid #505050;
    border-radius: 10px;
}

#new-element {
    margin-top: 0px;
    margin-right: 5px;
    font-size: 40px;
}

#new-element:hover {
  background-color: #AE7A0B; 
}

.descriptionTA {
    resize: none;
    height: 30px;
    border: 1px solid lightgrey;
    padding-top: 10px;
    padding-left: 10px;
    margin-left: 20px;
    margin-bottom: 10px;
    border-style: dashed;
}

.descriptionTA:focus {
    outline: 0;
}

#workspace-title {
    width: 85%;
    padding-left: 10px;
}

.label {
    padding: 7px 5px;
    height: 35px;
    margin-right: 0.5vw;
    font-weight: bold;
    color: white;
}

#workspace-empty-state {
    width: 98%;
    margin-top: 25px;
    margin-left: 11px;
}

.empty-state {
    height: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.empty-state-text {
    width: 50%;
    height: auto;
    text-align: center;
}

/* File Display    -------------------------*/
.hidden {
    display: none;
}

#show-files {
    font-size: 90px;
    color: black;
    cursor: pointer;
    padding: 10px 10px;
    flex-direction: column;
}

#file-display {
    height: 450px;
    width: 250px;
    position: absolute;
    right: 5px;
    top: 750px;
    overflow: auto;
}

.file-display-shown {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.file-display-content {
    float: right;
    display: flex;
    flex-direction: row;
    padding: 0;
    background-color: transparent;
}

.file-display-content:hover {
    text-decoration: none;
}

.file-display-icon {
    position: relative;
    left: 180px;
    padding: 0;
    margin: 0;
    font-size: 49px;
}
.file-display-icon:hover {
    background-color: #f4f4f5;
    font-size: 50px;
}

.file-display-name {
    position: absolute;
    right: 35%;
    padding: 3px 12px;
    font-size: 70%;
    color: white;
    letter-spacing: 1px;
    border-radius: 15%;
    background-color: #3a3b3c;
    margin-top: 10%;
    border: 1px solid gray;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 125px;
}
/* END File Display ---------------------- */

/* Tabs ---------------------------------- */
.tabBar {
    overflow: hidden;
    /* border: 1px solid #ccc; */
    background-color: #f1f1f1;
    height: 50px;
    display: flex;
  }
  
.tabBar button {
    background-color: inherit;
    float: left;
    outline: none;
    cursor: pointer;
    padding: 14px 10px;
    transition: 0.3s;
    border: none;
}
  
.tabcontent {
    padding: 6px 12px;
    border-top: none;
}

.tablink-edit {
  display: flex;
  padding-right:10px;
}
.tablink-edit input, span {
  margin-right: 10px; /* Adjust as needed */
}

.check-tab {
  position: relative;
  color: rgb(100, 98, 98);
  top: -25px;
}
.check-tab:hover {
  color: white;
}

.tablinks {
    height: 50px;
}

.close-tab {
    margin-left: 20px;
    padding: 10px 0px;
    color: rgb(100, 98, 98);
}
.close-tab:hover {
    color: black;
}



/* END Tabs --------------------------------- */




/* Tags --------------------------------------*/
#mySearch {
    /* width: 10%; */
    padding: 11px;
    border-bottom: 1px solid #ddd;
    font-size: small;
    margin-left: 5px;
    outline: none;
    display: inline;
}

#mySearch:focus {
    border-bottom: 2px solid #2c3e50;
}

.tag-list .new-tag {
    background-color: white;
    display: none;
    z-index: 1;
}

.tag-list .tag-list-element .new-tag {
    color: black;
    display: block;
}

.tag-list .tag-list-element .new-tag {
    background-color: #eee;
}

.tag-list-element {
    font-size: small;
    display: none;
    border-width: 1px;
    cursor: pointer;
}

.tag-list-element:hover {
    text-decoration: underline;
}

.tag-list {
    width: 19%;
    margin-left: 50px;
    background-color: white;
}

.close-tag {
    font-size: 15px;
    margin-left: 7px;
    cursor: pointer;
}

.new-tag {
    border-style: dashed;
    margin-top: 0;
}

#curr-tags {
    width: 60%;
    display: flex;
    flex-direction: row;
    float: right;
    margin-right: 10%;
    margin-top: 1%;
    font-size: smaller;
}

.styled-tags {
    display: flex;
    margin-right: 10px;
    height: 30px;
    background-color: aliceblue;
    padding: 5px 9px;
    border-radius: 20px;
    align-items: center;
}

/* END Tags*/

/* Drag and drop ----------------------------------------------*/
/* started from: https://codepen.io/dcode-software/pen/xxwpLQo */
.resources-zone {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 95%;
    height: auto;
}

.drop-zone {
    margin: 0 auto;
    height: inherit;
    padding-bottom: 50px;
    width: 100%;
    border-radius: 20px;
}

.drop-zone-show {
    margin: 5px;
    width: 100%;
    padding: 5px;
    border: 1px dashed #505050;
    border-radius: 10px;
}

.dropzone-filler {
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 10px;
    width: 99%;
    height: 20px;
    background-color: #2c3e50;
    display: none;
  }







/* .resource-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.resource-selector .options {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 50px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
}

.resource-selector:hover .options {
    display: block;
}

.resource-selector i {
    margin: 5px;
    font-size: 20px;
} */

.drop-zone-container {
    display: flex;
    width: 100%;
}
  
  
.resource-toggle {
      text-align: center;
      font-weight: bolder;
      outline: orange solid 3px;
      min-width: 6%;
      padding-left: 2%;
      padding-right: 2%;
      font-size: 20px;
      color: black;
      cursor: pointer;
      flex-direction: column;
      max-width: 10%;
  }



.drop-zone-new {
    /* margin: 0 auto; */

    float: right;
    height: inherit;
    line-height: inherit;
    text-align: center;
    vertical-align: middle;
    flex-grow: 1;
    border-radius: 15px;
    text-align: center;
    box-shadow: inset 0 0 0 0 #54b3d6;
    color: white;
    font-size: 20px;
    margin: 0 -.25rem;
    padding: 0 .25rem;
    transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
}

.drop-zone-new:hover {
    box-shadow: inset 200vh 0 0 0 #64cc5b;
    color: white;
}
    
.drop-zone--over {
    padding-bottom: 20px;
    border-radius: 20px;
    border: 2px solid #2c3e50;
}

.drop-zone__input {
    display: none;
}

.drop-zone__title {
    width: 90%;
    border: none;
    border-bottom: 1px solid gray;
    padding: 5px 5px;
    margin-left: 15px;
    margin-bottom: 10px;
}

.drop-zone__title:focus {
    border-bottom: 2px solid #2c3e50;
    outline: 0;
}

.drop-zone__thumb {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-size: contain;
    background: no-repeat center;
    position: relative;
}

.drop-zone__thumb::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    font-size: large;
    text-align: center;
}


.resource-type-container {
    margin-right: 0;
    float: right;   
    border: 1px solid #ccc;
    width:120px;
    height: 30px;
}

.icon {
    position:relative;
    top:-10px;
    margin-left: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.icon:hover {
    color: blue; /* Example hover effect */
    transform: scale(1.2); /* Slightly enlarge on hover */
}

.selected {
    color: green;
    transform: scale(1.4);
    
}
/* End drag and drop -------------------------------------*/

/* Workspace Manager Modal    ----------------------------------*/
.new-resource-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.277);
}

.resource-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding-top: 15px;
    width: 50%;
    height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
}

#resource-modal-body {
    display: flex;
    flex-direction: row;
}

.manager-options {
    display: flex;
    flex-direction: column;
}

#options-divider {
    border-left: 1px solid gray;
    margin-right: 20px;
    margin-left: 20px;
}

#modal-title {
    margin-top: 10px;
    margin-bottom: 5%;
    width: 35%;
    text-align: center;
}

.modal-option-header {
    text-align: center;
    font-size: large;
    margin-bottom: 20px;
}

.option-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.modal-icon {
    margin-top: 0;
}

.option {
    color: rgb(100, 98, 98);
}

.close {
    color: #aaa;
    float: right;
    font-size: 25px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 0px;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}
/* END Workspace Manager Modal    ----------------------------------*/

.share-button {
    position: absolute;
    right: 45px;
    top: -20px;
}

  .share-modal-title {
    flex-grow: 1;
    white-space: normal; 
    overflow: hidden;
    max-width: calc(100% - 80px);
    text-align: center; 
  }

  #share-modal-title {
    font-size: xx-large;
    font-weight: 400;
}

.share-modal-input {
    margin-top: 20px;
    width: 80%;
    outline: none;
    border: none;
    background-color: lightgray;
    border-bottom: 1px solid black;
    height: 40px;
    padding-left: 5px;
}

.currently-shared-with {
    list-style: none;
    margin-top: -40px;
    padding-top: 0;
}

  .shared-profile-picture {
    width: 10%;
    height: auto;
    margin-top: 50px;
  }

  .profile-info {
    margin-top: 50px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(87%);   
  }

  .profile-shared-with {
    display: flex; 
    flex-direction: row; 
    align-items: center;  
    margin-left: -30px; 
    margin-top: -25px;
  }

  .profile-status {
    margin-top: 36px;
}

  .custom-input-height {
    height: 10px;   
  }
  
  .remove{
    margin-top: 100px;
  }

  .permissions-box {
    display: none;
    margin-left: 20px;
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    z-index: 1; 
  }

  .permissions-row {
    display: flex;
    flex-direction: row;
    margin-right: 0px;
    font-size: medium;
  }

.permissions-col {
    display: flex;
    flex-direction: column;
    margin-right: 34px;
    align-items: center;
  }

.permission-li {
    margin-bottom: 20px;
    cursor: pointer;
}

.permissions-header {
    font-size: large;
    font-weight: 500;
    margin-right: 64%;
}

.permissions-hr {
    width: 100%;
  }

  .profile-status-container {
    display: flex;
    align-items: center;
}

  .arrow {
    cursor: pointer;
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 1px;
    height: 10px;
    width: 10px;
    background-color: transparent;
    margin-top: 36px;
    margin-left: 20px;
  }

.arrow:focus {
    outline: none;
}

.down-arrow {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.up-arrow {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.aux-button {
    position: absolute;
    top: 0;
    right: 40px;
    border: none;
    background-color: transparent;
}

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

.discussion-button {
    position: absolute;
    right: 80px;
    top: -20px;
}

.discussion-textarea {
    width: 100%;
    height: 80px;
    padding: 5px;
    border-radius: 5px;
    word-wrap: break-word;
    border: 1px solid black;
    margin-bottom: 5px;
    overflow: auto;
    font-size: 14px;
}

.discussion-modal-pos {
    left: 30%;
    top: 35px;
}

.discussion-modal-edges {
    box-shadow: 0px 1px 2px 0px rgba(0.5, 0.5, 0.5, 0.5);
    border-radius: 15px;
}

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

.flex-row {
    display: flex;
    flex-direction: row;
  }

  .share-search-bar {
    display: flex;
    align-items: center;
    width: 400px; /* Adjust the width as needed */
}

  /* Adjust the margin between the input field and the button */
  #user-search {
      margin-right: 10px; /* Adjust the margin as needed */
  }

  /* Center the button vertically within the search bar */
  #btn-search {
      align-self: center;
  }

.post-comment-btn {
    margin-left: 85%;
    border-radius: 5px;
    background-color: #5f89e0;
    color: white;
    border: none;
}

.post-comment-btn:hover {
    background-color: #8aa9e7;
    outline: 1px solid gray;
}

.discussion-user {
    padding: 0;
    margin: 6px 0 0 10px;
}

.comment-body {
    margin-left: 5px;
    word-wrap: break-word;
    font-size: 14px;
}

.comment-footer {
    margin: 10px 0 0 5px;
}

.like-button {
    background-color: lightgray;
    border-radius: 10%;
    outline: 2px solid gray;
    border: none;
}

.footer-hr {
    width: 30px;
    transform: rotate(0.25turn);
    margin: 15px 0 0 0;
}

.like-icon {
    margin: 0;
    font-size: 22px;
}

.post-date {
    font-size: 14px;
    margin-top: 6px;
}

/* Syles for Agnes    */

.drawer-container {
    position: fixed;
    right: 0;
    height: 100%;
    background-color: #17191a;
    width: 50px; /* Initial width */
    z-index: 10;
    overflow: hidden;
    transition: width 0.5s; /* Animation for width change */
}

.drawer-header {
    position: relative;
    height: 10%; /* Initial height */
    cursor: pointer;
    transition: height 0.5s; /* Animation for height change */
    color: #1f1f1f;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    font-size: 20px; /* Adjust as needed */
}

.drawer-header::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 160%; /* Full width of the parent */
    height: 160%; /* Full height of the parent */
    background: radial-gradient(circle, rgba(255, 165, 0, 0.5) 10%, transparent 70%);
    /* Radial gradient with fading edges */
    border-radius: 50%; /* Make it circular */
    transform: translate(-50%, -50%) scale(0); /* Center and scale down */
    transition: transform 0.3s ease-in-out;
    z-index: -1; /* Place it behind the content */
}

.drawer-header:hover::after {
    transform: translate(-50%, -50%) scale(1); /* Scale up on hover */
}

.drawer-container.open {
    width: 30%; /* Width when open */
}

.drawer-content {
    padding: 20px;
}

.editor-container {
    padding-bottom: 50px; /* Adjust as needed to prevent drawer overlap */
}


.toggle-button {
    width: 100%;
    height: 30px;
    background-color: #ccc;
    border: none;
    border-radius: 50px;
    transition: background-color .4s;
    position: relative;
    overflow: hidden;
}

.toggle-button-text {
    /* ... other styles ... */
    color: #fff; /* Default color when not selected */
}

.toggle-button.active .toggle-button-text.articles {
    color: #000; /* Color when 'Articles' is selected */
}

.toggle-button:not(.active) .toggle-button-text.suggestions {
    color: #000; /* Color when 'Suggestions' is not selected */
}

.toggle-button-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background-color: white;
    border-radius: 50px;
    transition: transform .4s;
    background-color: #F49A46;
}

.toggle-button.active .toggle-button-slider {
    transform: translateX(100%);
}

.toggle-button-text {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    line-height: 30px;
    text-align: center;
}

.toggle-button-text.articles {
    left: 0;
}

.toggle-button-text.suggestions {
    right: 0;
}
/* agnes original */
.agnes-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #3f3f3f;
    border-radius: 50%;
    padding: 10px 10px;
    z-index: 200; 
    
}

/* agne btn shadow */
.agnes-button:hover{
    box-shadow:  0 0 21px rgba(33,33,33,.2); 
}
.agnes-modal-shape {
    padding: 15px;
    gap: 5px;
}

#agnesModal {
    width: 360px;
    overflow-y: auto;
}


#close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 12px;
    width: 130px;
    height: 40px;
    padding: 2px 4px;
    margin: 0px;
}

#regenerate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 12px;
    width: 130px;
    height: 40px;
    padding: 2px 4px;
    margin: 0px;
}

.ag-generate-icon {
    margin-left: 5px;
    color: rgb(255, 255, 255);
    margin-top: 0;
}

.modal-open {
    overflow-y: auto !important;
    padding-right: 0px !important;
}

.agnes-modal-pos {
    right: 0vw;
    width:100%;
    display: none;
    position: fixed;
    z-index: 200; 
    transform: translate(0%, -95%);
}

.text-center-mod {
    text-align: center;
    justify-content: space-around;
}

#show-toast {
    position: fixed;
    top: 0;
    left: 45%;
    z-index: 1000;
    box-shadow: 3px rgba(0.5, 0.5, 0.5, 0.5);
}
  
.show-toast-text {
    font-size: 100%;
    padding: 15px 20px;
}

/* Custom modal size */
.custom-modal {
    max-width: 360px;
}
.custom-background-color {
    background-color: #818181;
}
.citations-btns-container {
    border-radius: 5px;
    background-color: #ffffff !important;
}
.modal-footer {
    padding-top: 10px;
}
/* Custom CSS for citations buttons */
.citations-btns {
    gap: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.custom-radius {
    border-radius: 10px !important;
    background-color: #b8b8b8;
    color: #ffffff;
    border-color: #ffffff;
}
.citations-title {
    color: #3f3f3f !important;
    text-align: center;
    font-size: smaller;
}

.citation-types-label {
  color: #ffffff;
  font-size: 0.8rem;
}

#citations-dropdown {
  margin-bottom: 10px;
}

/* Card CSS */

.citation-card {
    background-color: grey;
    margin-top: 5px;
    padding: 5px;
    overflow: hidden;
    border-radius: 5px;
}

.all-cards {
    overflow-y: scroll;
    max-height: 35vh;
}

.card-row-header {
  background-color: grey ;
  margin-bottom: 0px !important;
}

.card-close-btn {
  background-color: inherit; 
  border: none; 
}

.card-row-body {
    margin-bottom: 0px;
}

.card-cite-btn{
    background-color: black;
    border-radius: 10px;
    border: none;
    color: white;
}

.card-cite-btn:hover{
    background-color: #b8b8b8;
}

.card-citation-text {
    color: white;
    font-weight: normal;
    font-size: 12px;
}

.document-types-label {
    color: #ffffff;
    font-size: 0.8rem;
}

.btn.btn-danger:hover {
    background-color: red;
    border: none;
}

.btn-info { 
    cursor: pointer; 
    border: none; 
    background-color: transparent; 
    height: 35px; 
    width: 50px; 
    color: #ffffff; 
    display: show;
} 

.agnes-info {
    position: relative;
    top: -5px; /* You can adjust this value to move it up or down */
    width: 100%;
    display: inline;
    justify-content: end;
    align-items: baseline;
    height: 20px;
    margin: 0 auto;
}

.agnes-current-document {
    display: flex; 
    font-size: 12px;
    color: #ffffff;
}

.ai-loading {
    margin: 5px;
    color: #ffffff;
}

.drawer-container .drawer-content {
    display: none; /* Hide the drawer-content when the drawer is closed */
}

.drawer-container.open .drawer-content {
    display: block; /* Show the drawer-content when the drawer is open */
}