
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #29445c;
  background: #f6faff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* LOGIN PAGE */

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(
    125deg,
    #e6f3ff 0%,
    #f2efff 48%,
    #fff0f6 80%,
    #fff7df 100%
  );
}

#login .panel {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #eaf0f7;
  border-radius: 22px;
  box-shadow: 0 14px 45px rgba(79, 112, 160, 0.09);
  text-align: center;
  overflow: hidden;
}

#login .login-logo {
  display: block !important;
  width: 160px !important;
  max-width: 160px !important;
  height: auto !important;
  max-height: 160px !important;
  object-fit: contain !important;
  margin: 0 auto 24px !important;
  border-radius: 12px;
}

#login h1 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 800;
  color: #29445c;
}

#login .sub {
  margin: 0 0 25px;
  font-size: 13px;
  color: #8295aa;
}

#login label {
  text-align: left;
  margin: 14px 0;
}

#login input {
  width: 100%;
  padding: 12px;
  background: #ffffff;
}

#login button {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  background: #629ce6;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
}

/* MAIN PORTAL */

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

aside {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 25px 18px;
  border-right: 1px solid #e7edf4;
}

.brand {
  background: #fff6d9;
  border-radius: 20px;
  padding: 18px 12px;
  text-align: center;
}

.brand img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
  margin: auto;
  border-radius: 12px;
}

.subtitle {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9a91a0;
  text-align: center;
  margin: 15px 0 30px;
}

nav button {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: left;
  margin: 3px 0;
  border: 0;
  background: transparent;
  color: #647b91;
  border-radius: 12px;
}

nav button.active,
nav button:hover {
  background: #e8f6ff;
  color: #268cc1;
}

main {
  flex: 1;
  min-width: 0;
  padding: 35px;
  max-width: 1500px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.top h3 {
  font-size: 14px;
  color: #8b9daf;
}

.profile {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 30px;
  color: #bb7199;
  font-size: 12px;
}

.welcome {
  background: linear-gradient(
    115deg,
    #dff3ff,
    #fce4ef 65%,
    #fff1c9
  );
  border-radius: 23px;
  padding: 23px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.welcome small {
  font-size: 11px;
  letter-spacing: 1px;
  color: #639fbc;
  font-weight: 700;
}

.welcome h1 {
  margin: 8px 0;
  font-size: 26px;
}

.welcome p {
  margin: 0;
  color: #64869c;
}

.welcome img {
  width: 115px;
  max-height: 115px;
  object-fit: contain;
}

/* DASHBOARD */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.stat {
  background: #eaf5ff;
  border-radius: 16px;
  padding: 20px;
}

.stat.pink {
  background: #fff0f7;
}

.stat.yellow {
  background: #fff6db;
}

.stat small {
  display: block;
  color: #748ba1;
}

.stat b {
  display: block;
  font-size: 30px;
  margin-top: 8px;
  color: #376b91;
}

.workspace {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}

.panel,
.card {
  background: #ffffff;
  border: 1px solid #eaf0f5;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}

.card h2,
.panel h1 {
  margin: 0 0 16px;
}

.project-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}

.project-row small {
  color: #9b8295;
}

.task-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #ffffff;
  text-align: left;
}

.task-link small {
  color: #c785a5;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick button {
  background: #f7fbff;
}

/* COMMON COMPONENTS */

.sub {
  color: #8195a8;
  font-size: 13px;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(210px, 1fr)
  );
  gap: 14px;
}

button {
  cursor: pointer;
  border: 1px solid #d3e1f5;
  background: #ffffff;
  color: #3765a6;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

button:hover {
  filter: brightness(0.97);
}

button.primary {
  background: #629ce6;
  color: #ffffff;
  border-color: #629ce6;
}

.light {
  background: #ffffffcc;
}

label {
  font-size: 13px;
  color: #62718d;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 10px;
  border: 1px solid #d4e0f1;
  border-radius: 9px;
  background: #ffffff;
  color: #263957;
}

textarea {
  min-height: 72px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  display: block;
  overflow: auto;
}

th,
td {
  padding: 11px 9px;
  text-align: left;
  border-bottom: 1px solid #edf0f8;
}

th {
  color: #6780a2;
  background: #f6f9ff;
}

tr:hover td {
  background: #fcfdff;
}

.pill {
  display: inline-block;
  background: #e8f2ff;
  color: #4b83cc;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
}

.pill.pink {
  background: #fff0f7;
  color: #cb78a6;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 15px 0;
}

.toolbar > * {
  flex: 1;
  min-width: 140px;
}

.error {
  color: #bf4567;
}

.success {
  color: #20816c;
}

.signature {
  border: 2px dashed #b6cbea;
  border-radius: 12px;
  width: 100%;
  height: 160px;
  touch-action: none;
  background: #ffffff;
}

.note {
  padding: 12px;
  background: #fff4fa;
  border-radius: 10px;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

footer {
  text-align: center;
  color: #a3b2c0;
  font-size: 11px;
  margin-top: 35px;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 650px) {
  .layout {
    display: block;
  }

  aside {
    width: 100%;
    padding: 14px;
  }

  .brand {
    max-width: 180px;
    margin: auto;
  }

  .subtitle {
    margin: 10px 0;
  }

  nav {
    display: flex;
    overflow: auto;
  }

  nav button {
    min-width: 115px;
    white-space: nowrap;
  }

  main {
    padding: 18px;
  }

  .top {
    flex-wrap: wrap;
  }

  .welcome {
    padding: 20px;
  }

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

  .welcome img {
    width: 75px;
  }

  .stats {
    gap: 9px;
  }

  .stat {
    padding: 13px;
  }

  th,
  td {
    white-space: nowrap;
  }

  .panel,
  .card {
    padding: 15px;
  }

  #login .panel {
    padding: 28px 22px;
  }

  #login .login-logo {
    width: 140px !important;
    max-width: 140px !important;
  }
}
