/*************************
 * STILI GENERALI     *
 *************************/

body {
  background: white;
  font-family: 'Source Sans Pro', sans-serif;
  /* Fire Fox */
  scrollbar-width: thin;
  scrollbar-color: #000080 #e3e8ff;
  color: #000080;
  line-height: 1.2;
}

/* Stile Scrollbar per Chrome, Safari, Edge */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #e3e8ff;
}
body::-webkit-scrollbar-thumb {
  background-color: #000080;
  border-radius: 10px;
  border: 2px solid #e3e8ff;
}

.main-color {
  color: #0b42d8;
}

:focus-visible {
  outline: none; 
}

/*************************
 * TIPOGRAFIA     *
 *************************/

h1 {
  color: #000080;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

h2 {
  color: #000080;
  font-size: 24px;
  margin-left: 5px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #000080;
  font-weight: 300;
  margin-left: 15px;
}

.password-toggle {
text-align: right;
}

.password-toggle > label {
display: inline;
}

.link {
  color: #748fc9;
  text-decoration: none;
  font-size: 14px;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.link:hover {
  color: #000080;
  text-decoration: underline;
}

pre {
  color: #000080;
}

kbd {
  background-color: #000080;
}

/*************************
 * LAYOUT        *
 *************************/

.container-authentication {
  max-width: 600px;
  width: 90%;
  margin: 40px auto;
  background: -webkit-linear-gradient(135deg, #fff, #e3e8ff);
  background: -moz-linear-gradient(135deg, #fff, #e3e8ff);
  background: -o-linear-gradient(135deg, #fff, #e3e8ff);
  background: linear-gradient(135deg, #fff, #e3e8ff);
  padding: 20px;
  border-radius: 15px;
  border: 2px solid #e3e8ff;  
}

.rounded-border {
  border: 2px solid #e3e8ff;
  border-radius: 15px;
  padding: 30px;
  box-sizing: border-box;
  background: -webkit-linear-gradient(135deg, #fff, #e3e8ff);
  background: -moz-linear-gradient(135deg, #fff, #e3e8ff);
  background: -o-linear-gradient(135deg, #fff, #e3e8ff);
  background: linear-gradient(135deg, #fff, #e3e8ff);
}

.logo-container {
  margin: 2px 20px 2px 10px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  vertical-align: middle;
  margin-top: 20px;
}

.alternative-options  {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.alternative-option {
  margin-top: 20px;
  text-align: center;
}

/*************************
 * HEADER E NAVIGAZIONE        *
 *************************/

.peer-rank-header {
  background-color: #cdd3f8;
  padding: 20px 0;
  box-shadow: none;
}

.peer-rank-header h1 {
  margin: 10px;
  font-size: 21px;
  font-weight: bold;
  color: white;
  font-family: 'Verdana';
}

.peer-rank-header i {
  margin-right: 10px;
}

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

.dropdown {
  margin-right: 10px;
}

.dropdown-menu {
  border-radius: 10px;
  padding: 0;
  text-align: right;
  overflow: hidden;
  background: -webkit-linear-gradient(135deg, #fff, #e3e8ff);
  background: -moz-linear-gradient(135deg, #fff, #e3e8ff);
  background: -o-linear-gradient(135deg, #fff, #e3e8ff);
  background: linear-gradient(135deg, #fff, #e3e8ff);
  -webkit-box-shadow: none;
  box-shadow: none;
  width: 100%;
  border: 1px solid #e3e8ff;
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 14px;
  color: #000080;
  -webkit-transition: background-color 0.3s, color 0.3s;
  -moz-transition: background-color 0.3s, color 0.3s;
  -o-transition: background-color 0.3s, color 0.3s;
  transition: background-color 0.3s, color 0.3s;
  display: block;
  width: 100%;
  white-space: nowrap;
  border-bottom: 2px solid #e3e8ff;
}

.dropdown-item:hover {
  background-color: #cdd3f8;
  color: #000080;
  text-decoration: none;
}

.user-dropdown-btn {
  background-color: #fff;
  color: #000080;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 10px;
  -webkit-transition: background-color 0.3s, color 0.3s;
  -moz-transition: background-color 0.3s, color 0.3s;
  -o-transition: background-color 0.3s, color 0.3s;
  transition: background-color 0.3s, color 0.3s;
}

.user-dropdown-btn::before {
  content: url("User-PeerRank.png");
  max-width:25px;
}

.user-dropdown-btn:hover,
.user-dropdown-btn:focus,
.user-dropdown-btn:active {
  background: -webkit-linear-gradient(135deg, #fff, #e3e8ff);
  background: -moz-linear-gradient(135deg, #fff, #e3e8ff);
  background: -o-linear-gradient(135deg, #fff, #e3e8ff);
  background: linear-gradient(135deg, #fff, #e3e8ff);
  color: #000080;
}

.navbar-default { 
  background-color: #e3e8ff; 
}

.navbar-default .navbar-nav>li>a:focus, 
.navbar-default .navbar-nav>li>a:hover { 
  color: #000080; 
}

/*************************
 * PULSANTI       *
 *************************/

.btn {
  border-radius: 8px;
}

.btn:active {
  -webkit-box-shadow: inset 0 0px 0px rgba(0,0,0,0);
  box-shadow: none;
}

.btn-authentication {
  background-color: #cdd3f8;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
  color: #000080;
  border-radius: 10px;
}

.btn-authentication:hover {
  background-color: #000080;
  color: #ffffff;
}

.btn-primary {
  color: #000080;
  background-color: #cdd3f8;
  border-color: #cdd3f8;
  border-radius: 8px;
}

.btn-primary:hover {
  color: #fff;
  background-color: #000080;
  border-color: #000080;
}


.btn-back {
  background-color: #6c757d;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.btn-back:hover {
  background-color: #5a6268;
  color: #ffffff;
}


.btn-add-doi {
  background-color: #0b42d8;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.btn-add-doi:hover {
  background-color: #093bb8;
  color: #ffffff;
}

.btn#cancel {
  background-color: #cdd3f8;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
  color: #000080;
  border-radius: 10px;
}

.btn#cancel:hover {
  color: #fff;
  background-color: #000080;
}


/*************************
 * FORM E INPUT        *
 *************************/

.form-control {
  color: #000080;
  border: 1px solid #cdd3f8;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0px 0px rgba(0,0,0,.075);
  box-shadow: inset 0 0px 0px rgba(0,0,0,.075);
}

.form-control:focus {
  border-color: #000080;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.form-control::placeholder {
  color: #cdd3f8;
}

.form-control[disabled], 
.form-control[readonly], 
fieldset[disabled] .form-control {
  background-color: #fff;
  border: 1px solid #cdd3f8;
  border-radius: 10px;
  padding: 3px 12px;
  font-size: 14px;
  line-height: 1.2;
}

input#autocomplete-input:focus-visible {
  outline: 1px solid #000080;
}

/*************************
 * TABELLE        *
 *************************/

table th {
  word-wrap: break-word;
  white-space: normal;
  color: #000080;
  text-align: center;
  background-color: #cdd3f8;
}

table td {
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

.table>tbody>tr>td, 
.table>thead>tr>th {
  line-height: 1.2;
  border-top: 1px solid #cdd3f8;
  font-family: 'Source Serif Pro',serif;
}

.table>thead>tr>th {
  border-bottom: 2px solid #cdd3f8;
  font-family: 'Source Sans Pro', sans-serif;
}

.table-striped>tbody>tr:nth-of-type(odd) {
  background-color: #e3e8ff;
}

.table-hover>tbody>tr:hover {
  background-color: #cdd3f8;
}

.table-bordered > tbody > tr > td, 
.table-bordered > tbody > tr > th, 
.table-bordered > tfoot > tr > td, 
.table-bordered > tfoot > tr > th, 
.table-bordered > thead > tr > td, 
.table-bordered > thead > tr > th {
  border: 1px solid #cdd3f8;
}

.responsive-table {
  overflow-x: auto;
}

.scroll-table {
  border: 1px solid #cdd3f8;
  max-height: 50vh; 
  overflow-y: auto;
  overflow-x: auto;
}

#table_users th {
  min-width: 80px;
}

.td-number,
.td-icon,
.td-enum {
  text-align: center;
}

/*************************
 * TAG       *
 *************************/

.tag-pill {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 25px;
  margin: 5px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-all;
}

.tag-name {
  font-size: 1.0em;
  font-weight: bold;
  color: white;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

.remove-tag-button {
  margin-left: 10px;
  background: none;
  border: none;
  padding: 0;
  color: white;
}

.remove-tag-icon {
  color: white;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.remove-tag-button:hover .remove-tag-icon {
  color: #494949;
}

.tag-badge {
  margin-bottom: 5px;
  max-width: 100%;
  text-align: left;
}

.selected-tags-box {
  border: 2px solid #748fc9;
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  min-height: 50px;
}

/*************************
 * LISTE        *
 *************************/

.list-group {
  margin-bottom: 0px;
  padding: 0px 12px;
}

.list-group-item {
  padding: 5px 12px;
  margin-bottom: 2px;
  background-color: transparent;
  border-bottom: 1px solid #cdd3f8;
  font-family: 'Source Serif Pro', serif;
  line-height: 1.2;
}

.list-group-item:last-child {
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

.elements-list-edit-user {
  border: 1px solid #cdd3f8;
  background-color: transparent;
  padding: 3px 0px;
  border-radius: 10px;
  min-height: 10px;
  width: 100%;
  margin-bottom: 35px;
}

.list-elements-group-item-edit-user {
  background-color: transparent;
  border: none ;
  padding: 5px 0;
  border-bottom: 1px solid #cdd3f8;
}

#secondary_emails.elements-list-edit-user li.list-group-item.list-elements-group-item-edit-user {
  font-family: 'Source Sans Pro', sans-serif;
}

#secondary_emails .list-elements-group-item-edit-user {
 border-bottom: none;
}


/*************************
 * COMPONENTI        *
 *************************/

.alert {
  padding: 20px;
  font-family: 'Source Sans Pro', sans-serif;
  font-style: italic;
  border-radius: 0px;
}

.alert-success {
  color: #000080;
  background-color: #e3e8ff;
  border-color:#e3e8ff;
  border-radius: 0px;
}

.style-modal-content {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.style-modal-header {
  background-color: #044fc0;
  color: white;
}

.img-thumbnail {
  line-height: 1.2;
  border: 1px solid #cdd3f8;
}

.no-elements-message {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

.no-elements-assigned {
  color: #cdd3f8;
  margin: 0;
  padding: 5px 10px;
}

.tags-header {
  display: flex;
  justify-content: space-between;
  align-items:center;
}

.orcid-img {
  vertical-align: middle;
  margin-right: 5px;
}

/*************************
 * DEBUG & UTILITIES   *
 *************************/

.to-right { float: right; }
.to-left { float: left; }
.elimina-profilo { float: right; }
.conferma-elimina-profilo { float: left; }
.change-password { float: left; }

.bottom-space { margin-bottom: 10px; }
.vertical-space { margin-top: 20px; }
.text-right .vertical-space { margin-right: 10px; }
.aggiungi-doi { margin: 10px 0; text-align: center; }
.aggiungi-survey { margin: 10px 0; text-align: center; }

.inline-block { display: inline-block; }
.inline { display: inline; }
.invisible { visibility: hidden; }

.justified { text-align: justify; }
.attention { font-weight: bold; }


.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: -webkit-linear-gradient(135deg, #fff, #e3e8ff);
  background: -moz-linear-gradient(135deg, #fff, #e3e8ff);
  background: -o-linear-gradient(135deg, #fff, #e3e8ff);
  background: linear-gradient(135deg, #fff, #e3e8ff);
  background-clip: padding-box;
  border: 2px solid #e3e8ff;
  border-radius: 15px;
  outline: 0;
  margin-top:10%;
    box-shadow: none;
}

.modal-header {
  border-bottom: 2px solid #e3e8ff;
    border-radius: 15px 15px 0px 0px;
}

.style-modal-header {
  background-color: #e3e8ff;
  color: #000080;
  border-radius: 15px 15px 0px 0px;
}

.modal-footer {
  border-top: 1px solid #e3e8ff;
}

button#modal_new_survey_button {
  background-color: #fff;
  color: #000080;
}

button#modal_new_survey_button:hover {
  background-color: #000080;
  color: #fff;
}
