@import "https://fonts.googleapis.com/css2?family=Google+Sans:wght@500&family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap";

/* src/frontend/styles/indexes/management.css */
:root {
  color: #242424;
  font-synthesis: none;
  background: #f7f7f8;
  font-family: DM Sans, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

button:focus-visible {
  outline: 2px solid #e31826;
  outline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid #e31826;
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  display: flex;
  min-height: 100vh;
}

aside {
  display: flex;
  position: fixed;
  background: #f0f0f1;
  border-right: 1px solid #dedee1;
  flex-direction: column;
  width: 244px;
  padding: 32px 20px;
  inset: 0 auto 0 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items:  flex-start;
  gap: 12px;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.brand small {
  letter-spacing: 3px;
  color: #717178;
  font-size: 10px;
  font-weight: 600;
}

.auth-screen > .brand {
  align-items:  center;
  width: min(280px, 100%);
}

.workspace-label {
  letter-spacing: 1.7px;
  color: #717178;
  margin: 40px 11px 12px;
  font-size: 10px;
}

nav {
  display: grid;
  gap: 5px;
}

nav button, .company {
  display: flex;
  text-align: left;
  color: #626269;
  background: none;
  border: 0;
  border-radius: 7px;
  align-items:  center;
  gap: 12px;
  padding: 11px 12px;
  font-size: 13px;
}

nav button.active {
  color: #b4121e;
  background: #fbe9eb;
  font-weight: 600;
}

nav button span {
  font-size: 19px;
}

nav b {
  background: #f3f3f5;
  border-radius: 4px;
  margin-left: auto;
  padding: 2px 6px;
  font-size: 11px;
}

.companies-label {
  margin-top: 33px;
}

.company {
  gap: 11px;
  padding: 10px 12px;
  font-size: 12px;
}

.company.selected {
  background: #e8e8eb;
  font-weight: 700;
}

.company-dot {
  border-radius: 3px;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.company-dot.all {
  background: #667566;
}

.sidebar-bottom {
  display: flex;
  border-top: 1px solid #dcdce0;
  align-items:  center;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
}

.sidebar-bottom small {
  display: block;
  color: #717178;
  margin-top: 4px;
  font-size: 10px;
}

.avatar {
  background: #e5e5e8;
  border-radius: 50%;
  padding: 9px 12px;
  font-weight: 600;
}

main {
  display: flex;
  flex-direction: column;
  width: calc(100% - 244px);
  min-height: 100vh;
  margin-left: 244px;
  padding: 0 40px;
}

header {
  display: flex;
  color: #717178;
  border-bottom: 1px solid #e4e4e7;
  justify-content: space-between;
  align-items:  center;
  height: 77px;
  font-size: 12px;
}

.breadcrumb span {
  color: #bbc1b6;
  padding: 0 14px;
}

.private {
  display: flex;
  border: 1px solid #e0e0e4;
  border-radius: 20px;
  align-items:  center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 10px;
}

.private i {
  background: #e31826;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.page-title {
  padding: 37px 0 28px;
}

.eyebrow {
  letter-spacing: 1.8px;
  color: #68686e;
  font-size: 10px;
  font-weight: 650;
}

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

h1 {
  letter-spacing: -1.3px;
  margin: 10px 0;
  font-family: Manrope, sans-serif;
  font-size: 31px;
  font-weight: 650;
}

p {
  color: #717178;
  margin: 7px 0;
  font-size: 13px;
  line-height: 1.7;
}

h2 {
  font-size: 17px;
  font-weight: 600;
}

button.primary, a.primary {
  color: #fff;
  background: #c91422;
  border: 1px solid #c91422;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 550;
}

.secondary {
  color: #3f3f43;
  background: #fff;
  border: 1px solid #e0e0e4;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f3f3f5;
  border: 1px solid #e0e0e4;
  border-radius: 10px;
  margin-bottom: 31px;
  padding: 23px 0;
}

.stats > div {
  display: grid;
  border-right: 1px solid #e0e0e4;
  gap: 6px;
  padding: 0 25px;
}

.stats > div:last-child {
  border: 0;
}

.stats small {
  letter-spacing: 1.3px;
  color: #717178;
  font-size: 9px;
}

.stats strong {
  font-family: Manrope;
  font-size: 28px;
  font-weight: 600;
}

.stats span {
  color: #717178;
  font-size: 11px;
}

.amber {
  color: #b28a4e;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 22px;
  font-size: 13px;
}

.count {
  background: #f3f3f5;
  border-radius: 5px;
  margin-left: 9px;
  padding: 3px 7px;
  font-size: 10px;
}

.toolbar input {
  background: none;
  width: 210px;
  padding: 9px 13px;
  font-size: 11px;
}

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  overflow: auto;
  gap: 14px;
  min-height: 370px;
}

.column h2 {
  display: flex;
  align-items:  center;
  gap: 7px;
  margin: 0 0 17px;
  font-size: 11px;
  font-weight: 600;
}

.column h2 > span {
  color: #717178;
  margin-left: auto;
  font-size: 10px;
}

.status-dot {
  background: #b5bbb0;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.in_progress {
  background: #b49ae0;
}

.blocked {
  background: #d5aa63;
}

.done {
  background: #8baa82;
}

.todo {
  background: #96aec0;
}

.task {
  background: #fff;
  border: 1px solid #e0e0e4;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 14px;
  box-shadow: 0 2px 3px #33442204;
}

.card-top {
  display: flex;
  color: #717178;
  justify-content: space-between;
  align-items:  center;
  gap: 5px;
  font-size: 9px;
}

.priority {
  background: #f3f3f5;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 9px;
}

.priority.P0 {
  color: #b47860;
  background: #faece7;
}

.priority.P1 {
  color: #ae9151;
  background: #f8f1df;
}

.task h3 {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
}

.task p {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 90px;
  font-size: 11px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tags span {
  color: #717178;
  background: #f3f3f5;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 8px;
}

.task-meta {
  display: flex;
  color: #717178;
  border-top: 1px solid #f3f3f5;
  justify-content: space-between;
  gap: 5px;
  margin-top: 14px;
  padding-top: 12px;
  font-size: 9px;
}

.task select {
  color: #717178;
  width: 100%;
  margin-top: 10px;
  padding: 5px;
  font-size: 10px;
}

.empty-column {
  text-align: center;
  color: #717178;
  border: 1px dashed #e0e0e4;
  border-radius: 8px;
  padding: 28px 12px;
  font-size: 11px;
}

footer {
  display: flex;
  color: #717178;
  letter-spacing: 1.3px;
  justify-content: space-between;
  margin-top: auto;
  padding: 35px 0 22px;
  font-size: 9px;
}

footer span {
  letter-spacing: 0;
}

.welcome {
  max-width: 900px;
  padding: 65px 0 30px;
}

.welcome h1 {
  letter-spacing: -2px;
  margin: 20px 0;
  font-size: 52px;
  line-height: 1.18;
}

.welcome > p {
  font-size: 15px;
}

.login-card {
  background: #fff;
  border: 1px solid #e0e0e4;
  border-radius: 12px;
  max-width: 440px;
  margin-top: 40px;
  padding: 28px;
}

.login-card h2 {
  margin-top: 0;
}

.login-card p {
  margin-bottom: 20px;
}

.login {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.login-card small {
  display: block;
  color: #717178;
  margin-top: 18px;
  font-size: 10px;
}

.welcome-bottom {
  display: flex;
  color: #717178;
  gap: 30px;
  margin-top: 50px;
  font-size: 11px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.panel {
  background: #fff;
  border: 1px solid #e0e0e4;
  border-radius: 10px;
  padding: 27px;
}

.panel h2 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 17px;
  margin-top: 23px;
}

label {
  display: grid;
  color: #717178;
  gap: 7px;
  font-size: 11px;
}

input, textarea, select {
  color: #303036;
  background: #fff;
  border: 1px solid #e0e0e4;
  border-radius: 5px;
  width: 100%;
  padding: 10px;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #e31826;
  outline-offset: 1px;
}

fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e0e0e4;
  border-radius: 5px;
  gap: 8px;
}

legend {
  padding: 0 5px;
  font-size: 11px;
}

.check {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.check input {
  width: auto;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row label {
  flex: 1;
}

.message {
  overflow-wrap: anywhere;
  background: #eeeeef;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 13px;
  font-size: 12px;
}

.error {
  color: #aa533a;
}

.message.error {
  background: #f9e9e2;
}

.modal-backdrop {
  position: fixed;
  display: flex;
  z-index: 10;
  background: #18181b70;
  justify-content: center;
  align-items:  center;
  padding: 20px;
  inset: 0;
}

.modal {
  overflow: auto;
  position: relative;
  background: #fafafa;
  border-radius: 13px;
  width: 550px;
  max-height: 90vh;
  padding: 30px;
}

.close {
  position: absolute;
  color: #717178;
  background: none;
  border: 0;
  font-size: 24px;
  top: 12px;
  right: 15px;
}

.bot-glyph {
  color: #717178;
  font-size: 40px;
}

.bot-row {
  display: flex;
  border-bottom: 1px solid #e0e0e4;
  align-items:  center;
  gap: 12px;
  padding: 18px 0;
  font-size: 13px;
}

.bot-row > span {
  color: #717178;
  font-size: 25px;
}

.bot-row small {
  display: block;
  color: #717178;
  margin-top: 5px;
  font-size: 10px;
}

@media (min-width: 1500px) {
  main {
    padding-left: 55px;
    padding-right: 55px;
  }
}

@media (max-width: 1000px) {
  aside {
    width: 205px;
    padding: 25px 15px;
  }

  main {
    width: calc(100% - 205px);
    margin-left: 205px;
    padding: 0 25px;
  }

  .stats > div {
    padding: 0 15px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .welcome h1 {
    font-size: 40px;
  }
}

@media (max-width: 650px) {
  aside {
    position: static;
    width: 100%;
    padding: 15px;
  }

  .app {
    display: block;
  }

  .brand {
    font-size: 14px;
  }

  .brand-icon {
    padding: 6px 10px;
    font-size: 18px;
  }

  .workspace-label, .company, .sidebar-bottom {
    display: none;
  }

  nav {
    display: flex;
    gap: 4px;
    margin-top: 14px;
  }

  nav button {
    padding: 8px;
    font-size: 11px;
  }

  nav button span {
    font-size: 14px;
  }

  main {
    width: 100%;
    margin: 0;
    padding: 0 18px;
  }

  header {
    height: 55px;
  }

  .page-title {
    padding-top: 25px;
  }

  h1 {
    font-size: 25px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stats > div:nth-child(2) {
    border: 0;
  }

  .title-row {
    align-items:  flex-start;
  }

  .primary {
    white-space: nowrap;
  }

  .welcome {
    padding-top: 35px;
  }

  .welcome h1 {
    font-size: 37px;
  }

  .welcome-bottom {
    gap: 12px;
    font-size: 9px;
  }

  .toolbar input {
    width: 160px;
  }

  .settings-grid {
    gap: 15px;
  }

  .modal {
    padding: 22px;
  }

  fieldset {
    grid-template-columns: 1fr;
  }
}

.access-workspace {
  display: grid;
  gap: 24px;
  padding: 0 40px 32px;
}

.access-workspace .settings-grid {
  padding: 0;
}

.scope-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  align-items:  center;
  gap: 28px;
}

.access-row {
  display: flex;
  border-bottom: 1px solid #e0e0e4;
  flex-wrap: wrap;
  align-items:  center;
  gap: 14px;
  padding: 18px 0;
}

.access-row:last-child {
  border-bottom: 0;
}

.access-row > div {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 160px;
}

.access-row small {
  display: block;
  color: #717178;
  margin-top: 5px;
}

.access-row select {
  width: auto;
  min-width: 140px;
}

.text-button {
  color: #4f4f56;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 9px;
}

.text-button.danger {
  color: #9c4646;
}

.invitation-link {
  margin-top: 24px;
}

.invitation-banner {
  margin: 24px 40px;
}

.invitation-banner .primary {
  margin-right: 12px;
}

@media (max-width: 900px) {
  .access-workspace {
    padding: 0 20px 24px;
  }

  .scope-picker {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .invitation-banner {
    margin: 20px;
  }
}

.auth-screen {
  justify-content: center;
  align-items:  center;
  gap: 32px;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 56px 20px 28px;
}

.auth-card {
  background: #fff;
  border: 1px solid #dedee1;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  padding: 36px;
  box-shadow: 0 12px 40px #24242408;
}

.auth-card h1 {
  letter-spacing: -.8px;
  margin: 18px 0 14px;
  font: 700 28px / 1.25 Manrope, sans-serif;
}

.auth-card p {
  color: #626269;
  font-size: 14px;
  line-height: 1.65;
}

.auth-providers {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.auth-card .login {
  width: 100%;
  margin: 0;
}

.auth-card form .primary {
  width: 100%;
  margin-top: 16px;
}

.auth-card input {
  margin-top: 8px;
}

.auth-card label {
  font-size: 13px;
}

.auth-secondary {
  color: #b4121e;
  background: #fff;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  width: 100%;
  margin: 14px 0 24px;
  padding: 12px;
  font-weight: 600;
}

.auth-card small {
  display: block;
  color: #68686f;
  font-size: 12px;
  line-height: 1.6;
}

.auth-privacy {
  color: #68686f;
  font-size: 12px;
}

.account-status {
  display: flex;
  text-align: right;
  align-items:  center;
  gap: 12px;
  font-size: 11px;
}

.account-status strong {
  display: block;
  overflow-wrap: anywhere;
}

.account-status button {
  flex-shrink: 0;
}

@media (max-width: 650px) {
  .auth-screen {
    padding: 32px 16px;
  }

  .auth-card {
    padding: 28px 24px;
  }

  .app header {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: 77px;
    padding: 16px 0;
  }
}

.google-signin {
  display: flex;
  position: relative;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #747775;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  transition: background .15s, box-shadow .15s;
  font: 500 14px / 20px Google Sans, Arial, sans-serif;
}

.google-signin img {
  object-fit: contain;
  flex: 0 0 20px;
}

.google-signin:hover {
  background: #f8faff;
  box-shadow: 0 1px 3px #00000015;
}

.google-signin:active {
  background: #edf2fa;
}

.auth-screen {
  border-top: 4px solid #ed1524;
}

.auth-card .eyebrow {
  color: #b4121e;
}

.auth-secondary:hover {
  background: #fbe9eb;
  border-color: #d9a3a9;
}

.primary:hover:not(:disabled) {
  background: #ad101c;
}
