* {
  box-sizing: border-box;
}
body{
  font-family: 'Sedan', sans-serif;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
.header-container {
  display: flex;
  justify-content: flex-end;                                            /*fix the icon on small and medium screens */
}
.brand-logo {
  margin-right: 76.7vw;
  padding: 0;
  margin-top: 3px;
}
.header-links {
  display: flex;
  align-items: center; 
  gap: 80px; 
}
.sidenav{
  margin-top: 2%;
}
.logout-item{
  margin-left: 22vw; 
}
.logout-button {
    background: none;
    border: none;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
.filters-side{
  margin-top: 10%;
}
.summaries-side{
  margin-top: 5%;
}
.logout-side{
  margin-top: 5%;
}
.nav-wrapper a {
  color: #333;
}
.dark-text {
  color: #333;
}
.nav-wrapper {
  position: fixed;
  font-family:"Open Sans", sans-serif;
  z-index: 1000;
  height: 64px; 
}
.btn{
  font-family: 'Sedan', sans-serif;
} 
.papercrunch{
  margin-left: 3.5%;
  width: 95%;
  max-width: 95%;
  padding: 2% 1rem;
  box-sizing: border-box;
}
#toggleQueryForm{
  margin-top: 65px;
}
.query-form .form-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.query-form .form-group {
  flex: 1;
  min-width: 200px;
  margin-right: 15px;
}
.query-form .form-group:last-child {
  margin-right: 0;
}
.query-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 550; 
  font-size: 18px; 
  color: #333;
}
.query-form input[type="text"],
.query-form input[type="date"],
.query-form select {
  width: 100%;
  padding: 12px 14px; 
  margin-top: 8px; 
  border: 1px solid #ccc; 
  border-radius: 8px;
  box-sizing: border-box; 
  font-size: 16px; 
  line-height: 1.5; 
  transition: border-color 0.3s, box-shadow 0.3s; 
}
.query-form ::placeholder {
  font-size: 18px; 
  color: #999999; 

}
.query-form h5 {
  font-size: 18px;
  font-weight: 600; 
  color: #444; 
  margin-bottom: 15px; 
  border-bottom: 2px solid #ccc; 
  padding-bottom: 5px; 
}
.tag-filter{
  margin-top: 25px;
}
.search{
  display: none;
}
.query-form {
  max-width: 800px;
  margin: 15px auto;
  padding: 20px; 
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.error-message {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 3px;
}
.collapsible{
  margin-top: 27px;
}
.collapsible-header {
  position: relative;
  cursor: pointer;
}
.collapsible-header::after {
  content: "\e5cf";
  font-family: 'Material Icons';
  position: absolute;
  right: 0;
  font-size: 24px;
  line-height: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}
.collapsible-header.active::after {
  content: "\e5ce"; 
}
.form-error-message {
  color: #721c24;
  padding: 10px;
  margin-bottom: 18px;
  padding-top: 15px;
  font-size: 16px;
}
.search-btn{
  margin-left: 38%;
}
.papers-grid{
  display: grid;
  gap: 40px;
}
.papers-grid a {
  color: #26A69A;
  text-decoration: underline; 
}
.papers-grid a {
  text-decoration: underline; 
}
.paper{
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}
.paper h3{
  margin-top:0;
  font-size: 22px
}
.tags{
  color: rgb(65, 138, 248);
  margin-left: 15px;
}
.authors {
  font-size: 17px;
  margin-top: 5px; 
  font-style: italic; 
}
.summary {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0;
  font-size: 16px;
}
.dates {
  display: flex;
  gap: 3%; 
}
.date-item {
  margin: 0;
  font-size: 25px; 
}
.date-item span {
  font-size: 16px;
  color: #37474f;
}
.date-item .date-value {
  font-size: 16px;
  color: #37474f;
}
.paper-bottom{
  display:flex;
  font-size: 18px;
  gap: 5%;
}
.pdf{
  margin-top: 6px;
}
.summ{
  margin-top: 6px;
 }
.previous{
  margin-left: 40%;
}
.next{
  margin-left: 5%;
}
.paper-navigation a{
  text-decoration: underline;
  color: blue;
  font-size: 18px;
}
.paper-navigation{
  margin-top: 25px;
}
.analysis {
  max-width: 88%;
  margin-left: 5%;
  padding-top: 85px; 
}
.loading-page{
  padding-top: 95px;
}
.loading-screen{
  display: flex; 
  align-items: center;
  font-size: 19px;
  margin-left: 33vw;
  text-align: center;
}
.loading-complete-screen{
  display: flex; 
  align-items: center;
  margin-left: 33vw;
  font-size: 19px;
  text-align: center;
}
.gen{
  margin-left: 45px;
  color:#26A69A;
}
.hidden-response{
  margin-left: 6vw;
}
.hidden-analysis{
  max-width: 92%;
  margin-top: 10px;
  display: none;
  opacity: 0;
}
.review-error{
  display: none;
  color: #721c24;
  padding: 10px;
  padding-top: 15px;
  font-size: 16px;
  margin-left: 31vw;
  margin-top: 13px;
}
.review-error-msg{
  display: flex;
  align-items: center; 
  gap: 8px;
}
.view-error{
  color: #721c24;
  padding: 10px;
  padding-top: 15px;
  font-size: 16px;
  margin-left: 27vw;
  margin-top: 85px;
}
.view-error-msg{
  display: flex;
  align-items: center; 
  gap: 8px;
}
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}
.fade-in {
  animation: fadeIn 1s ease-in-out;
  opacity: 1; 
}
.response{
  padding-top: 5px;
  margin-left: 12px;
}
.notes-panel {
  position: fixed;
  right: 20px;
  top: 15vh;
  width: 45%;
  background-color: #F8F8FF;
  padding: 20px;
  border-radius: 8px; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
  display: none;
  z-index: 1000;
}
.notes-panel .input-field input,
.notes-panel .input-field textarea {
  width: 100%; 
  margin-top: 0;
  border: none; 
}
.notes-panel .input-field input:focus,
.notes-panel .input-field textarea:focus {
    outline: none; 
}
.notes-panel .input-field textarea {
  height: 430px; 
}
#toggle-notes {
  position: fixed;
  right: 15px;
  top: 330px;
}
#reviewNotes{
  position: fixed;
  right: 15px;
  top: 330px;
}
.notes-panel-open #toggle-notes {
    position: fixed;
    z-index: 1001; 
}
.notes-panel-open #reviewNotes {
  position: fixed;
  z-index: 1001; 
}
.preferences-form  {
  background-color: #F8F8FF;
  margin-top: 95px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
  border-radius: 8px;  
  border: 1px solid #e0e0e0;
  padding: 30px  
}
.preferences-form-btn{
  display: none;
}
.preferences-form .card-title{
  font-weight: 900; 
  font-size: 17px; 
}
.preferences-form .input-field {
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
}
.preferences-form .input-field input::placeholder {
  color: #9e9e9e; 
  font-style: italic;
}
.preferences-form .row {
  margin-bottom: 0;
}
.preferences-form .helper-text {
  font-size: 0.8rem;
}
.preferences-form .dark-label {
  color: #424242; 
  font-weight: 500;
  font-size: 14px;
}
.filters-btn{
  margin-top: 20px;
  margin-left: 40%;
}
.summary-list{
  margin-left: 5.2%;
  padding-top: 12vh; 
  box-sizing: border-box;
  max-width: 85%;
}
.summary-titles a{
  text-decoration: underline; 
  line-height: 1.5;
  font-size: 17px;
}
/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.pagination ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.pagination li {
  margin: 0 5px;
}
.pagination a {
  display: block;
  padding: 10px 15px;
  font-size: 17px;
  border-radius: 4px;
  text-decoration: none;
}
.pagination a:hover,
.pagination li.active a {
  background-color: #26A69A;
  color: white;
}
.pagination .waves-effect a {
  transition: background-color 0.3s ease;
}
.attempts-error{
  max-width: 40%;
  padding-top: 30vh;
  margin: 0 auto;
  color: #721c24;
  font-size: 16px;
}
.login-header{
  margin-top: 41px;
  margin-left: 58px;
  display: flex;
  align-items: center;
}
.form-container{
  margin-left: 10%;
  width: 80%;
  margin-top: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
  background-color: #F8F8FF;
}
.login-form{
  max-width: 40vw;
  padding-top: 88px;
  padding-bottom: 2vh;
  margin: 0 auto;
}
.login-form .input-field label {
  color: #999999;  
  font-size: 16px;
}
.login-form .input-field {
  margin-bottom: 20px;
}
.login-form .button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-bottom-links{
  display: flex;
  justify-content: center;
  gap: 15vw;
  margin-top: 20px;
  font-size: 17px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 40px; 
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #757575;
}
.toggle-password:hover {
  color: #000; 
}
.messages {
  padding-top: 89px;
  max-width: 40%;             
}
.reset-form {
  padding-top: 38vh;
  max-width: 25%;
 } 
.messages ~ .reset-form {
  padding-top: 6%;
}
.reset-button{
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.reset-form .error-message {
  margin-bottom: 1rem;
}
.password-reset-message{/*in done page*/
  padding-top: 88px;
  padding-right: 20px;
  padding-left: 20px;
  font-size: 17px;
}
.reset-confirm{
  padding-top: 90px;
  padding-left: 20px;
  padding-right: 20px;
}
.set-new-password{
  max-width: 25%; 
}
.set-new-password .card-panel{
  background-color: #F8F8FF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}
.password-reset-btn{
  margin-top: 20px;
  margin-left: 35%;
  margin-bottom: 0px;
}
.reset-confirm .input-field{
  margin-top: 35px;
}
.container.password-reset-success {
  padding-top: 88px;
  max-width: 40%; 
}
.password-reset-failed {
  padding: 20px;
  max-width: 60%; 
}
.container.password-reset-success a {
  text-decoration: underline;
  color: blue;
}
.confirmation-success {
  position: relative;
  text-align: center;
  padding-top: 15%; 
}
.confirmation-success h4 {
  color: #26A69A;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}
.confirmation-success p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.confirmation-success a {
  text-decoration: underline;
  color: blue;  
}
.center-vertically {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; 
}
@media (max-width: 1350px){
}
@media (min-width: 1001px){
  .sidenav{
    margin-top: 3%;
  }
}
@media (max-width: 1250px){
  .logout-item{
    margin-left: 10vw; 
  }
}
@media (max-width: 1080px){
  .form-container{
    width: 78%;
  }
  .login-form{
    max-width: 54vw;
  }
}
@media (max-width: 1000px){
  .logout-item{
    margin-left: 5vw; 
  }
  .account-circle{
    margin-top: 5px;
  }
  .sidenav{
    margin-top: 6%;
  }
  .form-container{
    width: 78%;
  }
  .login-form{
    max-width: 54vw;
  }
}
@media(max-width:850px){
  .form-container{
    margin-left: 5%;
    width: 88%;
  }
  .login-form{
    max-width: 60vw;
  }
 
}
@media(max-width:991px){
  .logout-button.side-logout{
    margin-left: 31px;
  }
}
@media (max-width: 727px) {
  .query-form .form-row {
    flex-direction: column;
  }
  .form-container{
    margin-left: 3%;
    width: 90%;
  }
  .login-form{
    max-width: 74vw;
  }
}
@media (max-width: 785px) {
  .papercrunch{
    margin-left: 1.5%;
  }
  
}
@media (max-width: 600px) {
  .query-form .form-row {
    flex-direction: column;
  }
  .query-form .form-group {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .sidenav{
    margin-top: 11%;
  }
  #save-btn {
  padding: 4px 9px; 
}
  .form-container{
  margin-left: 3%;
  width: 92%;
}
  .login-form{
  max-width: 78vw;
}
  .papercrunch{
  font-size: 11px;
  margin-left: 6px;
  padding: 5px;
}
  .paper{
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
  .paper h3{
  margin-top:0;
  font-size: 12px;
}
  .tags{
  color: rgb(65, 138, 248);
  margin-left: 5px;
}
  .authors {
  font-size: 12px;
  margin-top: 5px; 
  font-style: italic; 
}
  .summary {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0;
  font-size: 11px;
}
  .paper-bottom{
  display:flex;
  font-size: 11px;
  gap: 5%;
}
  .date-item {
  margin-top: 3px;
  font-size: 10px; 
}
  .date-item span {
  font-size: 10px;
  color: #37474f;
}
  .date-item .date-value {
  font-size: 10px;
  color: #37474f;
}
}
@media (max-width: 300px){
  .sidenav{
    margin-top: 12%;
  }
  .form-container{
    margin-left: 1.5%;
    width: 93%;
  }
  .login-form{
    max-width: 80vw;
  }
  .papercrunch{
    width: 90%;
    max-width: 90%;
    font-size: 10px;
    margin-left: 6px;
    padding: 4px;
  }
  .paper{
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  .paper h3{
    margin-top:0;
    font-size: 8px;
  }
  .tags{
    color: rgb(65, 138, 248);
    margin-left: 5px;
  }
  .authors {
    font-size: 9px;
    margin-top: 4px; 
    font-style: italic; 
  }
  .summary {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    font-size: 9px;
  }
  .paper-bottom{
    display:flex;
    font-size: 9px;
    gap: 5%;
  }
  .date-item {
    margin-top: 3px;
    font-size: 6px; 
}
  .date-item span {
  font-size: 6px;
  color: #37474f;
}
  .date-item .date-value {
  font-size: 6px;
  color: #37474f;
}
}
@media (max-width: 375px){
  .papercrunch{
    width: 91%;
    max-width: 91%;
    font-size: 7px;
    margin-left: 6px;
    padding: 4px;
  }
  .paper{
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  .paper h3{
    margin-top:0;
    font-size: 8px;
  }
  .tags{
    color: rgb(65, 138, 248);
    margin-left: 5px;
  }
  .authors {
    font-size: 9px;
    margin-top: 4px; 
    font-style: italic; 
  }
  .summary {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    font-size: 8px;
  }
  .paper-bottom{
    display:flex;
    font-size: 7px;
    gap: 5%;
  }
  .date-item {
    margin-top: 3px;
    font-size: 7px; 
}
  .date-item span {
  font-size: 7px;
  color: #37474f;
}
  .date-item .date-value {
  font-size: 7px;
  color: #37474f;
}
}



