/*general*/
:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-size: 20px;

  color-scheme: light dark;
  color: rgb(0, 0, 0);
  background-color: #92cfb0;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 1.6rem;
  margin: 0 1rem;
}

h2 {
  margin: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
}

h3 {
  margin: 0;
  margin-top: 1rem;
  font-weight: 600;
}

html,
body,
#app,
#main {
  height: 100%;
  margin: 0;
  padding: 0;
}

#main-container {
  background-color: rgb(255, 255, 255);
  padding: 2.5rem;
  padding-bottom: 0.2rem;
  overflow: auto;
}

/*left side tabs*/
#menu {
  background-color: #92cfb0;
  font-size: 1.15rem;
  padding: 0;
  padding-left: 1rem;
}

#menu > a[href] {
  display: block;
  padding: 0.7rem 1.2rem;
}

#main{
  display: grid;
  grid-template-columns: auto 2fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  height: 100%;
}

/*top toolbar*/
#global-toolbar {
  background-color: #92cfb0;
  grid-column: span 2;
  /* Span across both columns */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1em;
}

#global-toolbar>* {
  margin: 0 1rem;
}

#global-toolbar>#refresh-button {
  margin-right: auto;
}


/*general collection of InputFields*/
.field-group {
  display: table;
  width: 100%;
}


/*general InputFields*/
.field-group>.input-field {
  display: table-row;
}

.field-group>.input-field>* {
  display: table-cell;
  vertical-align: top;
}

.input-field>label {
  width: 1px;
}

.input-field input,
.input-field select,
.input-field textarea,
.input-field div {
  font-size: 1rem;
  padding: 0.2rem 0.3rem;
  border-width: 0.05rem;
  border-radius: 7px;
}

.input-field input,
.input-field select,
.input-field textarea {
  background-color: #ffffff;
}

.field-group>.input-field input,
.field-group>.input-field select,
.field-group>.input-field textarea,
.field-group>.input-field div {
  margin: 0.45rem 0;
}

.input-field div {
  padding: 0.52rem 0.53rem
    /*0.45+0.05+0.2 bzw 0.3*/
}

.input-field input[type="text"],
.input-field input[type="password"],
.input-field input[type="email"],
.input-field textarea {
  min-width: 20rem;
  max-width: 20rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.2rem 0.3rem;
  border-width: 0.05rem;
  border-radius: 7px;
}

.input-field input[type="number"] {
  width: 4.5rem;
}

.input-field input[type="date"] {
  width: 7.7rem;
}

input[disabled] {
  color: black;
}

label {
  padding: 0.45rem 1rem 0 0;
  white-space: nowrap;
}

input::placeholder {
  color: rgb(156, 156, 156);
  font-style: italic;
}

/*select fields*/
.field-group>.input-field>.select-container {
  padding: 0;
}

div.select-container>* {
  vertical-align: top;
}

div.input-field.no-label {
  margin: 0;
  padding: 0;
}

div.input-field.no-label > label {
  display: none;
}

div.input-field.no-label > * {
  margin: 0;
  padding: 0;
}

#assignees-list > div {
  padding-left: 0;
  padding-bottom: 0;
}

#assignees-list a[href] { 
  display: inline;
}

/*general buttons*/
/*buttons that look like buttons*/
input[type="button"],
input[type="submit"] {
  font-size: 1rem;
  line-height: 1.2rem;
  padding: 0.2rem 0.4rem;
  border-radius: 7px;
  border-width: 0.05rem;
  background-color: #f0f0f0;
}

/*buttons that look like links, links*/
.toolbar>.link-button,
.toolbar>a[href] {
  display: block;
  border: 0 none;
  background-color: transparent;
  text-decoration: underline;
  color: rgb(4, 58, 183);
  padding: 0.5rem 0;
}

/*delete buttons*/
.toolbar>.critical-operation {
  color: #e33838;
}

/* disabled buttons */
input[type="button"]:disabled,
input[type="submit"]:disabled {
  opacity: 0.7; 
  cursor: not-allowed;
}

/*collection of links/link-buttons*/
.toolbar>* {
  margin: 0.5rem 0;
}

.toolbar>:first-child {
  margin-top: 0;
}

.toolbar>:last-child {
  margin-bottom: 0;
}

.toolbar {
  padding: 1em 0;
}


/*general links*/
a[href] {
  color: rgb(0, 0, 0);
  text-decoration: none;
  white-space: nowrap;
}

a[href]:hover {
  text-decoration: underline;
}

a[href].selected {
  background-color: white;
}


/*general dialogs*/
#dialog {
  display: none;
}

.dialog {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

#dialog.dialog {
  display: flex;
  background-color: rgba(0, 0, 0, 0.5); 
  backdrop-filter: blur(2px);
}

.dialog>* {
  background-color: white;
  max-width: 20rem;
  padding: 2rem 3rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  filter: none;
}
/*buttons aligned horizontally*/
.dialog .horizontal-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  padding-top: 1rem;
}

.dialog .toolbar {
  padding: 0;
}

/*button on right side of dialog (login)*/
.dialog .toolbar .right-button {
  float: right;
}

/*small label above InputField*/
.dialog label {
  display: block;
  font-size: 0.6rem;
}

.dialog .input-field {
  margin-bottom: 0.5rem;
}

#confirm-text {
  margin: 0;
}

/*header of dialog*/
.dialog h2 {
  font-weight: normal;
  font-size: 1.2;
}


/*general tables*/
table {
  border-collapse: collapse;
  overflow: auto;
}

th, td {
  border: 1px solid #929292;
  text-align: left;
  padding: 0.4rem 0.8rem;
  overflow: auto;
}

th {
  background-color: #d8d8d8;
  color: rgb(0, 0, 0);
}

/* general svg icons */
.svg-icon {
  background-color: #f0f0f0;
  background-repeat: no-repeat;
  background-size: 100%;
  width: 1.7rem;
}

/*Mein Team tab*/

/*user profiles list*/
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/*user profiles link*/
#my-team a[href] {
  padding: 0.5rem 1.2rem;
}


/*profile editor*/

#edit-profile {
  padding: 0rem 2rem 0rem 1rem;
  background-image: url(circle-user-regular.svg);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: right;
  font-size: 1.1rem;
}


/*Backlog and Scrumboard tabs*/

/*link-button for creating US & Tasks*/
.create-button {
  background-color: #f0f0f0;
  color: black;
  border: 0.05rem solid rgb(0, 0, 0);
  border-radius: 7px;
  width: 1.7rem;
  height: 1.7rem;
  text-align: center;
}

 a[href].create-button:hover {
  text-decoration: none ;
}

/*"toolbar" of header & create button*/
.horizontal-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.horizontal-toolbar h2 {
  margin: 0;
}

/*makes create button hover on right side of table*/
.user-story-list {
  width: fit-content;
}

/*in UserStoryEditor: TaskList to the right of InputFields*/
.two-column {
  display: grid;
  grid-template-columns: min-content 1fr; 
  grid-template-rows: auto auto auto;
  column-gap: 7rem;
}

.two-column > * { 
  grid-column: 1;
}

.two-column > :nth-child(4) { 
  grid-column: 2;
  grid-row: 1 / span 3;
}

.task-list-container .create-button {
  width: 100%;
  border: 1px solid #92cfb0;
  border-radius: 15px;
  margin: 0.4rem 0;
  background-color: #cbeedc;
  max-width: 20rem;
  display: block;
}

/*scrumboard table fills screen, colums same width*/
.task-table > table {
    width: 100%;
    min-width: 45rem;
    table-layout: fixed;
    overflow: auto;
}

.task-table > table > tbody > tr > td{
  vertical-align: top;
}

.task-card {
  border: 1px solid #92cfb0;
  border-radius: 15px;
  margin: 0.4rem 0;
  background-color: #a8e9c8;
  max-width: 20rem;
  overflow: hidden;
}

.task-card-body {
  margin: 0;
  border-radius: 0 0 15px 15px;
  background-color: #cbeedc;
}

.task-card-body > p {
  margin: 0.1rem 0;
}

.task-card-body > div {
  text-align: right;
}

.arrow-right {
  background-image: url(arrow-right-solid.svg);
  background-position: center;
  background-size: 70%;
}

.arrow-left {
  background-image: url(arrow-left-solid.svg);
    background-position: center;
    background-size: 70%;
}

.time-estimate-icon {
  width: 0.9rem;
  vertical-align: -0.1rem;
}

.priority-icon {
  width: 0.95rem;
  vertical-align: -0.15rem;
  background-color: black;
  border-radius: 50%;
  padding: 1px;
}

.task-card-body a[href] {
  display: inline;
}

.task-card-header > * {
  white-space: nowrap;
  overflow: hidden;
}

.task-card-body,
.task-card-header {
  padding: 0.3rem 0.5rem;
}

input[type="button"].round-button {
  height: 1rem;
  width: 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  padding: 0;
  border-width: 0.05rem;
  line-height: 1rem;
}

.split-button {
  border: 0.05rem solid;
  border-radius: 7px;
  padding: 0.2rem 0.3rem;
  margin-right: 0.5rem;
  border-color: rgb(118, 118, 118);
}

.task-us-link {
  background-image: url(arrow-up-right-md-svgrepo-com.svg);
}