@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500,700&display=swap");
* {
  box-sizing: border-box;
}
:root {
  --app-container: #f3f6fd;
  --main-color: #1f1c2e;
  --dot: #fff;
  --canvas: #fff
  --card-post: #fff;
  --card-text: #1f1c2e;
  --nav-color: #39006A;
  --secondary-color: #4a4a4a;
  --link-color: #1f1c2e;
  --link-color-hover: #c3cff4;
  --link-color-active: #fff;
  --link-color-active-bg: #1f1c2e;
  --projects-section: #fff;
  --message-box-hover: #fafcff;
  --message-box-border: #e9ebf0;
  --more-list-bg: #fff;
  --more-list-bg-hover: #f6fbff;
  --more-list-shadow: rgba(209, 209, 209, 0.4);
  --button-bg: #1f1c24;
  --search-area-bg: #fff;
  --star: #1ff1c2e;
  --message-btn: #fff;
}
.dark:root {
  --app-container: #0e0925;
  --main-color: #e8e0f5;
  --dot: #e8e0f5;
  --canvas: #1e1340;
  --card-post: #1e1340;
  --card-text: #e8e0f5;
  --nav-color: #130c30;
  --secondary-color: rgba(232, 224, 245, 0.7);
  --projects-section: #1a1035;
  --link-color: rgba(232, 224, 245, 0.85);
  --link-color-hover: rgba(155, 105, 220, 0.2);
  --link-color-active: #fff;
  --link-color-active-bg: rgba(155, 105, 220, 0.3);
  --button-bg: #2d1f56;
  --search-area-bg: #1e1340;
  --message-box-hover: #251848;
  --message-box-border: rgba(155, 105, 220, 0.2);
  --star: #ffd92c;
  --light-font: rgba(232, 224, 245, 0.7);
  --more-list-bg: #251848;
  --more-list-bg-hover: rgba(155, 105, 220, 0.15);
  --more-list-shadow: rgba(0, 0, 0, 0.4);
  --message-btn: rgba(155, 105, 220, 0.15);
  --bs-table-striped-color: #e8e0f5;
  --bs-table-color: #e8e0f5;
  --bs-table-bg: #1a1035;
}

/*--------------------------------------------------------------------*/
/*
    CONFIGURACOES GERAIS
*/
/*--------------------------------------------------------------------*/
html, body {
  width: 100%;
  height: 100vh;
  margin: 0;
}
body {
  font-family: "DM Sans", sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background-color: var(--app-container);
  transition: background-color 0.4s;
}
@media (max-width: 768px) {
  html, body {
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto !important;
  }
  .app-container {
    height: auto !important;
    display: block !important;
  }
}

button, a {
  cursor: pointer;
  text-decoration: none;
  color: white;
}

h1, h2, h3, h4, h5, h6, p, small, label, dl, span {
  color: var(--main-color)
}

strong a {
  color: var(--main-color);
}

h5.card-title {
  color: var(--card-text);
}

th, td, tr, a {
  color: var(--main-color);
}
#inputs_presenca {
  border: none;
}
/*--------------------------------------------------------------------*/
/*
    NAV BAR
*/
/*--------------------------------------------------------------------*/
/* Add a black background color to the top navigation */
#topnav {
  background-color: var(--nav-color);
  color: var(--link-color-active);
  /*overflow: hidden;*/
  width: 100%;
  margin-top: 0px;
}

td a {
  text-decoration: none;
  color: var(--main-color);
}

/* Style the links inside the navigation bar */
#topnav a {
  float: left;
  color: var(--nav-menu-link);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  margin: 0px;
}

/* Change the color of links on hover */
#topnav a:hover {
  background-color: var(--link-color-hover);
  color: var(--link-color);
}

/* Add a color to the active/current link */
#topnav li.active {
  /*background-color: #04AA6D;*/
  background: linear-gradient(333deg, rgba(57,0,106,1) 0%, rgba(255,98,83,1) 50%, rgba(251,173,11,1) 100%);
  color: white;
}

/*
.dropdown-menu {
    position: relative;
    right: 0px;
}

*/
/*--------------------------------------------------------------------*/
/*
    CONTEUDO
*/
/*--------------------------------------------------------------------*/
div.jumbotron{
  background: var(--projects-section);
  color: var(--main-color);
  padding: 30px;
  width: 100%;
  border-radius: 25px;
  text-align: left;
}

#dot {
  min-height: 180px;
  max-width: 180px;
  /*background-color: #39006A;
  background: rgb(131,58,180);*/
  background: linear-gradient(333deg, rgba(57,0,106,1) 0%, rgba(255,98,83,1) 50%, rgba(251,173,11,1) 100%);
  border-radius: 50%;
  /*display: inline-block;*/
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-align: center;
}
.dot p {
  color: var(--dot);
}

div.card-body {
  background-color: var(--card-post);
  color: var(--card-text);
  border-color: #fff;
}

.card-text {
  color: var(--card-text);
}

/*------------------------------------------------------------------------*/
/* ESTILO CODE PEN */
/*--------------------------------------------------------------------*/
.app-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--app-container);
  transition: 0.2s;
  max-width: 1800px;
}
.app-container button, .app-container input, .app-container optgroup, .app-container select, .app-container textarea {
  font-family: "DM Sans", sans-serif;
}
.app-content {
  display: flex;
  height: 100%;
  overflow: hidden;
  padding: 16px 24px 24px 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .app-content {
    padding: 8px 0 0 0;
    flex-direction: column;
    height: auto;
    overflow: visible;
    min-height: calc(100vh - 70px);
  }
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 24px;
  position: relative;
  z-index: 10000;
  background-color: var(--nav-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.app-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.app-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-icon {
  width: 26px;
  height: 2px;
  border-radius: 4px;
  background-color: var(--main-color);
  position: relative;
}
.app-icon:before, .app-icon:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 4px;
  background-color: var(--main-color);
  left: 50%;
  transform: translatex(-50%);
}
.app-icon:before {
  top: -6px;
}
.app-icon:after {
  bottom: -6px;
}
.app-name {
  color: var(--main-color);
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  margin: 0 32px;
}
.mode-switch {
  background-color: transparent;
  border: none;
  padding: 0;
  color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.dark .search-wrapper {
  box-shadow: none;
}
.page-content  {
  flex: 1;
  width: 100%;
}
/*--------------------------------------------------------------------*/
/*
    ICONES | BOTOES
*/
/*--------------------------------------------------------------------*/
.add-btn {
  color: #fff;
  background-color: var(--button-bg);
  padding: 0;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-btn, .btn-action, .view-btn, .messages-btn, .add-btn {
  color: var(--main-color);
  padding: 0;
  border: 0;
  background-color: transparent;
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.notification-btn:hover, .btn-action:hover, .view-btn:hover {
  background-color: var(--link-color-hover);
  transform: scale(1.1);
}

.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

/* Estilo para links que agem como botões */
a.btn-primary, button.btn-primary {
  background: linear-gradient(333deg, rgba(57,0,106,1) 0%, rgba(255,98,83,1) 50%, rgba(251,173,11,1) 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

a.btn-primary:hover, button.btn-primary:hover {
  box-shadow: 0 6px 12px rgba(57, 0, 106, 0.3) !important;
  transform: translateY(-1px);
}

.profile-btn {
  padding: 0;
  border: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  padding-left: 12px;
  border-left: 2px solid #ddd;
}
.profile-btn img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 4px;
}

.profile-btn-profile img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 4px;
}

.profile-btn span {
  color: var(--main-color);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}
.page-item active {
  background-color: var(--nav-color);
}
/*--------------------------------------------------------------------*/
/*
    PROJECT SECTIONS
*/
/*--------------------------------------------------------------------*/
.projects-section {
  flex: 2;
  background-color: var(--projects-section);
  border-radius: 32px;
  padding: 32px 32px 32px 32px;
  overflow: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#filtro {
  padding: 0px 32px;
}

.projects-section-line {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
}
.projects-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: var(--main-color);
}
.projects-section-header p {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  opacity: 0.9;
  margin: 0;
  color: var(--main-color);
}
.projects-section-header .time {
  font-size: 20px;
}
.projects-status {
  display: flex;
}
.item-status {
  display: flex;
  flex-direction: column;
  margin-right: 16px;
}
.item-status:not(:last-child) .status-type:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translatey(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--secondary-color);
}
.status-number {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--main-color);
}
.status-type {
  position: relative;
  padding-right: 24px;
  color: var(--secondary-color);
}
.view-actions {
  display: flex;
  align-items: center;
}
.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  border-radius: 4px;
  background-color: transparent;
  border: none;
  color: var(--main-color);
  margin-left: 8px;
  transition: 0.2s;
}
.view-btn.active {
  background-color: var(--link-color-active-bg);
  color: var(--link-color-active);
}
.view-btn:not(.active):hover {
  background-color: var(--link-color-hover);
  color: var(--link-color-active);
}

.navbar-toggler {
  color: var(--dot);
}

.project-boxes {
  margin: 0 -8px;
  overflow-y: auto;
}
.project-boxes.jsGridView {
  display: flex;
  flex-wrap: wrap;
}
.project-boxes.jsGridView-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}
.project-boxes.jsGridView .project-box-wrapper {
  width: 33.3%;
}
.project-boxes.jsListView .project-box {
  display: flex;
  border-radius: 10px;
  position: relative;
}
.project-boxes.jsListView .project-box > * {
  margin-right: 24px;
}
.project-boxes.jsListView .more-wrapper {
  position: absolute;
  right: 16px;
  top: 16px;
}
.project-boxes.jsListView .project-box-content-header {
  order: 1;
  max-width: 120px;
}
.project-boxes.jsListView .project-box-header {
  order: 2;
}
.project-boxes.jsListView .project-box-footer {
  order: 3;
  padding-top: 0;
  flex-direction: column;
  justify-content: flex-start;
}
.project-boxes.jsListView .project-box-footer:after {
  display: none;
}
.project-boxes.jsListView .participants {
  margin-bottom: 8px;
}
.project-boxes.jsListView .project-box-content-header p {
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-boxes.jsListView .project-box-header > span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
}
.project-boxes.jsListView .box-progress-wrapper {
  order: 3;
  flex: 1;
}
.project-box {
  --main-color-card: #ffffff;
  border-radius: 20px;
  padding: 20px;
  background-color: var(--main-color-card);
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dark .project-box {
  --main-color-card: #2a1a3e;
}
.project-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--main-color);
}
.project-box-header span {
  color: #4a4a4a;
  opacity: 0.7;
  font-size: 14px;
  line-height: 16px;
}
.project-box-content-header {
  text-align: center;
  margin-bottom: 16px;
}
.project-box-content-header p {
  margin: 0;
}
.project-box-wrapper {
  padding: 8px;
  transition: 0.2s;
}
.project-btn-more {
  padding: 0;
  height: 14px;
  width: 24px;
  height: 24px;
  position: relative;
  background-color: transparent;
  border: none;
  flex-shrink: 0;
  /*&:after, &:before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--main-color);
    opacity: .8;
    left: 50%;
    transform: translatex(-50%);
  }

  &:before { top: 0;}
  &:after { bottom: 0; }*/
}
.more-wrapper {
  position: relative;
}
.box-content-header {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  opacity: 0.7;
}
.box-content-subheader {
  font-size: 14px;
  line-height: 24px;
  opacity: 0.7;
}
.box-progress {
  display: block;
  height: 4px;
  border-radius: 6px;
}
.box-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  margin: 8px 0;
}
.box-progress-header {
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  margin: 0;
}
.box-progress-percentage {
  text-align: right;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
}
.project-box-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  position: relative;
}
.project-box-footer:after {
  content: "";
  position: absolute;
  background-color: rgba(255, 255, 255, 0.6);
  width: calc(100% + 32px);
  top: 0;
  left: -16px;
  height: 1px;
}
.participants {
  display: flex;
  align-items: center;
}
.participants img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}
.participants img:not(:first-child) {
  margin-left: -8px;
}
.add-participant {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.6);
  margin-left: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.days-left {
  background-color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  border-radius: 20px;
  flex-shrink: 0;
  padding: 6px 16px;
  font-weight: 700;
}
.mode-switch.active .moon {
  fill: var(--dot);
}
button.bi bi-door-open {
  fill: var(--dot);
}
span.username {
  color: var(--dot)
}
.messages-btn {
  border-radius: 8px;
  background-color: transparent;
  border: none;
  color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: all 0.2s ease;
  display: none; /* Escondido por padrão, mostrado no mobile */
}
.messages-btn:hover {
  background-color: var(--link-color-hover);
  transform: scale(1.1);
}

.hide {
  display: inline-block;
}
.sticky taped:hover + .hide {
  display: flex;
}

/*--------------------------------------------------------------------*/
/*
    BOTOES E INPUTS MODERNOS
*/
/*--------------------------------------------------------------------*/
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--main-color);
  opacity: 0.8;
}

.form-control {
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--message-box-border) !important;
  background-color: var(--search-area-bg) !important;
  color: var(--main-color) !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.form-control:focus {
  border-color: #39006A !important;
  box-shadow: 0 0 0 4px rgba(57, 0, 106, 0.1) !important;
  outline: none !important;
}

.dark .form-control {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark .form-control:focus {
  border-color: #EBC6F7 !important;
  box-shadow: 0 0 0 4px rgba(235, 198, 247, 0.1) !important;
}

.btn-primary {
  background: linear-gradient(333deg, rgba(57,0,106,1) 0%, rgba(255,98,83,1) 50%, rgba(251,173,11,1) 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0.75rem 2rem !important;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  color: white !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(57, 0, 106, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

/*--------------------------------------------------------------------*/
/*
    SIDE BAR
*/
/*--------------------------------------------------------------------*/
.app-sidebar {
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-sidebar-link {
  color: var(--main-color);
  color: var(--link-color);
  margin: 16px 0;
  transition: 0.2s;
  border-radius: 50%;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-sidebar-link:hover {
  background-color: var(--link-color-hover);
  color: var(--link-color-active);
}
.app-sidebar-link.active {
  background-color: var(--link-color-active-bg);
  color: var(--link-color-active);
}

.messages-section {
  flex-shrink: 0;
  padding-bottom: 32px;
  background-color: var(--projects-section);
  margin-left: 24px;
  flex: 1;
  width: 100%;
  border-radius: 30px;
  position: relative;
  overflow: auto;
  transition: all 300ms cubic-bezier(0.19, 1, 0.56, 1);
}
.messages-section .messages-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: none;
  background-color: transparent;
  color: var(--main-color);
  display: none;
}
.messages-section.show {
  transform: translateX(0);
  opacity: 1;
  margin-left: 0;
}
.messages-section .projects-section-header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 32px 24px 0 24px;
  background-color: var(--projects-section);
}
.message-box {
  border-top: 1px solid var(--message-box-border);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.message-box:hover {
  background-color: var(--message-box-hover);
  border-top-color: var(--link-color-hover);
}
.message-box:hover + .message-box {
  border-top-color: var(--link-color-hover);
}
.message-box img {
  border-radius: 50%;
  object-fit: cover;
  width: 40px;
  height: 40px;
}
.message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.message-header .name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--main-color);
  margin: 0;
}
.message-content {
  padding-left: 16px;
  width: 100%;
}
.star-checkbox input {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}
star-checkbox label {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.dark .star-checkbox {
  color: var(--secondary-color);
}
.dark .star-checkbox input:checked + label {
  color: var(--star);
}
.star-checkbox input:checked + label svg {
  fill: var(--star);
  transition: 0.2s;
}

.messages-section {
  transition: all 400ms cubic-bezier(0.19, 1, 0.22, 1);
  flex: unset;
  width: 100%; /* Permitir que o media query controle a largura real */
}

@media screen and (min-width: 881px) {
  .messages-section {
    width: 500px;
  }
}

.messages-section.hidden{
  width: 50px;
  transition: all 600ms linear;
  overflow: hidden;
}


.messages-section.hidden .projects-section-header {
  padding: 0px;
  padding-top: 32px;
}

.messages-section.hidden .projects-section-header p,
.messages-section.hidden .projects-section-header .app-sidebar-link.active,
.messages-section.hidden #lista-tarefas {
  opacity: 0;
  pointer-events: none;
}

.message-line {
  font-size: 14px;
  line-height: 20px;
  margin: 8px 0;
  color: var(--main-color);
}
.message-line.time {
  text-align: right;
  margin-bottom: 0;
}

/*--------------------------------------------------------------------*/
/*
    DASHBOARD
*/
/*--------------------------------------------------------------------*/
canvas {
  background-color: #fff;
  border-radius: 5%;
}

/*--------------------------------------------------------------------*/
/*
    RODAPE
*/
/*--------------------------------------------------------------------*/
/* Set black background color, white text and some padding */
footer {
  background-color: #39006A;
  color: white;
  padding: 15px;
}
/*--------------------------------------------------------------------*/
/*
    MEDIA QUERY
*/
/*--------------------------------------------------------------------*/
@media screen and (max-width: 980px) {
  .project-boxes.jsGridView .project-box-wrapper {
    width: 50%;
  }
  .status-number, .status-type {
    font-size: 14px;
  }
  .status-type:after {
    width: 4px;
    height: 4px;
  }
  .item-status {
    margin-right: 0;
  }
}
@media screen and (max-width: 880px) {
  .messages-section {
    transform: translateX(100%);
    position: fixed;
    opacity: 0;
    top: 0;
    right: 0;
    z-index: 99999;
    height: 100vh;
    width: 320px;
    background-color: var(--projects-section);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  }
  .messages-section .messages-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .messages-btn {
    display: flex;
  }
}
@media screen and (max-width: 720px) {
  .app-name, .profile-btn span {
    display: none;
  }
  .add-btn, .notification-btn, .mode-switch {
    width: 20px;
    height: 20px;
  }
  .add-btn svg, .notification-btn svg, .mode-switch svg {
    width: 16px;
    height: 16px;
  }
  .app-header-right button {
    margin-left: 4px;
  }
}@media screen and (max-width: 520px) {
  .projects-section {
    overflow: auto;
    padding: 10px 10px 10px 10px !important;
    border-radius: 12px !important;
  }

  .app-header {
    margin: 8px 8px 0 8px !important;
    width: calc(100% - 16px) !important;
    border-radius: 12px !important;
    padding: 6px 12px !important;
    top: 8px !important;
  }

  .app-header-right {
    gap: 8px !important;
  }

  /* Status Cards em Colunas - Grid Moderno */
  .projects-section-line {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-top: 16px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .projects-section-line .projects-status {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dark .projects-section-line .projects-status {
    background: rgba(155, 105, 220, 0.05);
    border-color: rgba(155, 105, 220, 0.1);
  }

  .item-status {
    margin-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .status-number { 
    font-size: 1.1rem !important; 
    margin-bottom: 2px !important;
    display: block !important;
  }
  .status-type { 
    font-size: 0.75rem !important; 
    opacity: 0.8 !important;
    white-space: nowrap !important;
  }

  .view-actions {
    grid-column: span 2 !important;
    justify-content: center !important;
    margin-top: 8px !important;
  }


  /* Filtros: pills menores e mais compactos */
  .quad-filters { margin-top: 8px !important; }
  .quad-pill {
    padding: 6px 12px !important;
    height: 34px !important;
    font-size: 0.75rem !important;
    border-radius: 10px !important;
  }

  /* Status numbers menores */
  .status-number { font-size: 0.95rem !important; }
  .status-type { font-size: 0.7rem !important; }
}


/*--------------------------------------------------------------------*/
/*
    SISTEMA PREMIUM DE DESIGN - BLOCO ÚNICO E DEFINITIVO
*/
/*--------------------------------------------------------------------*/

/* ===== SCROLLBARS MODERNAS (MAC STYLE) ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
.dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

/* ===== NAVBAR PREMIUM ===== */
.app-header {
  border-radius: 20px !important;
  margin: 12px 16px !important;
  width: calc(100% - 32px) !important;
  padding: 10px 24px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  border-bottom: none !important;
  position: sticky !important;
  top: 12px !important;
  background-color: var(--nav-color) !important;
}

.app-header-left a,
.app-header-right a {
  color: white !important;
  font-weight: 600 !important;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.app-header-left a:hover,
.app-header-right a:hover {
  color: #ffca28 !important;
  background-color: rgba(255,255,255,0.12) !important;
  text-decoration: none !important;
}

/* ===== FILTROS DE QUADRIMESTRE ===== */
.quad-filters {
  display: block !important;       /* Ocupa linha inteira */
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  margin: 16px 0 0 0 !important;   /* Colado direto no header-section */
  padding-bottom: 10px !important; /* Espaço p/ scrollbar visível */
  scrollbar-width: thin !important;
  scrollbar-color: rgba(57,0,106,0.3) transparent !important;
}

.quad-filters::-webkit-scrollbar { display: block !important; height: 4px !important; }
.quad-filters::-webkit-scrollbar-thumb { background: rgba(57,0,106,0.3) !important; border-radius: 10px !important; }

.quad-filters form {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: max-content !important;
}

.quad-pill {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 12px 26px !important;
  height: 50px !important;
  border-radius: 16px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  background: #ffffff !important;
  color: #32006A !important;
  border: 2px solid #32006A !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.quad-pill:hover {
  background: rgba(50,0,106,0.06) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(50,0,106,0.12) !important;
}

.quad-pill.active {
  background: linear-gradient(135deg, #32006A 0%, #9B26AF 100%) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(50,0,106,0.3) !important;
  transform: translateY(-2px) !important;
}

/* ===== SEPARADOR DE STATUS ===== */
.projects-section-line {
  display: flex;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 16px;
  gap: 20px;
}

/* ===== GRID DE CARTÕES ===== */
.project-boxes {
  margin-top: 8px !important;
  padding-top: 0 !important;
  clear: both !important;
}

/* ===== CARTÕES PREMIUM ===== */
.project-box {
  border-radius: 20px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  padding: 20px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
  min-height: 200px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
:not(.dark) .project-box {
  background: #ffffff !important;
}

.project-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}

.dark .project-box {
  background: #1e1340 !important;
  border-color: rgba(155, 105, 220, 0.2) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* Barra lateral de cor */
.project-accent-bar {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 5px !important;
  border-radius: 20px 0 0 20px !important;
}

/* Header do cartão */
.project-box-header .days-left {
  background: #f0f4ff !important;
  color: #32006A !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Título do cartão */
.box-content-header {
  color: #111827 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin: 10px 0 6px 0 !important;
}

.dark .box-content-header { color: #f9fafb !important; }

/* Subtítulos do cartão */
.box-content-subheader {
  color: #4b5563 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
}

.dark .box-content-subheader { color: #9ca3af !important; }

/* Barra de progresso */
.box-progress-bar {
  height: 7px !important;
  border-radius: 10px !important;
  background: rgba(0,0,0,0.08) !important;
  overflow: hidden !important;
}

.box-progress {
  height: 100% !important;
  display: block !important;
  border-radius: 10px !important;
}

/* ===== SEÇÃO PRINCIPAL ===== */
.projects-section {
  padding: 24px 28px !important;
  border-radius: 24px !important;
}

.projects-section-header {
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* ===== FORMULÁRIOS MODERNOS (já existentes mas reforçados) ===== */
.form-group { margin-bottom: 1.5rem; }
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }
.form-control {
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--message-box-border) !important;
  background-color: var(--search-area-bg) !important;
  color: var(--main-color) !important;
  transition: all 0.2s ease-in-out !important;
}
.form-control:focus {
  border-color: #39006A !important;
  box-shadow: 0 0 0 4px rgba(57,0,106,0.1) !important;
  outline: none !important;
}

/* ===== BOTÕES GLOBAIS ===== */
.btn { border-radius: 10px !important; font-weight: 600 !important; transition: all 0.2s ease !important; }

a.btn-primary, button.btn-primary, input[type=submit].btn-primary {
  background: linear-gradient(333deg, rgba(57,0,106,1) 0%, rgba(255,98,83,1) 50%, rgba(251,173,11,1) 100%) !important;
  border: none !important;
  color: white !important;
  padding: 0.75rem 2rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(57,0,106,0.2) !important;
}

a.btn-primary:hover, button.btn-primary:hover, input[type=submit].btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(57,0,106,0.3) !important;
}

@media (max-width: 768px) {
  .app-header { margin: 6px 6px 0 6px !important; padding: 8px 14px !important; border-radius: 14px !important; }
  .projects-section { padding: 14px !important; border-radius: 16px !important; }
  .project-boxes.jsGridView .project-box-wrapper { width: 100% !important; }
  .quad-pill { padding: 8px 14px !important; height: 40px !important; font-size: 0.8rem !important; }
  /* Logo menor no mobile */
  .navbar-brand img { width: 85px !important; height: auto !important; }
  /* Sidebar visível mas menor no mobile */
  .messages-section { width: 280px !important; }
  .messages-section.hidden { width: 40px !important; }
}

/* ===== JUMBOTRON ===== */
div.jumbotron {
  background: var(--projects-section);
  color: var(--main-color);
  padding: 10px;
  width: 100%;
  border-radius: 25px;
  text-align: left;
}


/* ===== CORREÇÕES FINAIS v2 ===== */

/* Remove linha verde do browser (outline/accent-color) */
* { accent-color: #32006A; }
body, #replace-all { outline: none !important; border: none !important; }

/* Pills: garante que o form não herde flex do Bootstrap */
.quad-filters form {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: max-content !important;    /* Chave: não colapsa os botões */
  min-width: 100%;
}

/* Cartões: texto legível no modo claro - regra final */
.box-content-header {
  color: #0f0f1a !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}
.dark .box-content-header {
  color: #e8e0f5 !important;
}
.box-content-subheader {
  color: #374151 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
.dark .box-content-subheader {
  color: #b8acd4 !important;
}
.box-progress-header {
  color: #32006A !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}
.dark .box-progress-header {
  color: #c9a6f5 !important;
}
.box-progress-percentage {
  color: #111 !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
}
.dark .box-progress-percentage {
  color: #e8e0f5 !important;
}

/* Dark mode: harmonizar outros elementos */
.dark .projects-section {
  background-color: var(--projects-section) !important;
}
.dark .projects-section-header p {
  color: var(--main-color) !important;
}
.dark .days-left {
  background: rgba(155, 105, 220, 0.2) !important;
  color: #c9a6f5 !important;
  border: 1px solid rgba(155, 105, 220, 0.3) !important;
}
.dark .quad-pill {
  background: rgba(30, 19, 64, 0.9) !important;
  color: #c9a6f5 !important;
  border: 2px solid rgba(155, 105, 220, 0.4) !important;
}
.dark .quad-pill:hover {
  background: rgba(155, 105, 220, 0.15) !important;
}
.dark .quad-pill.active {
  background: linear-gradient(135deg, #4a0080 0%, #7B26AF 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(74,0,128,0.4) !important;
}
.dark .box-progress-bar {
  background: rgba(255,255,255,0.08) !important;
}

/* ===== FORMULÁRIOS PREMIUM & DARK MODE ===== */
.form-label, label {
  color: var(--main-color);
  font-weight: 600;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.dark label, .dark .form-label {
  color: #f3eeff !important; /* Quase branco para contraste máximo */
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.form-control, input, select, textarea {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 12px !important;
  color: #1f1c2e !important;
  padding: 10px 16px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.dark .form-control, .dark input, .dark select, .dark textarea {
  background-color: rgba(30, 20, 60, 0.8) !important;
  border: 1px solid rgba(155, 105, 220, 0.3) !important;
  color: #f3eeff !important;
}

.form-control:focus, input:focus {
  box-shadow: 0 0 0 4px rgba(155, 105, 220, 0.2) !important;
  border-color: #9B26AF !important;
  background-color: #fff !important;
}

.dark .form-control:focus, .dark input:focus {
  background-color: rgba(45, 30, 90, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(155, 105, 220, 0.3) !important;
}

/* ===== RESPONSIVIDADE ADICIONAL DO HEADER ===== */
@media screen and (max-width: 480px) {
  /* Escondendo botões secundários no mobile compacto para evitar overflow */
  .app-header-right a[title="Adicionar projeto"], 
  .app-header-right .messages-btn {
    display: none !important;
  }
  .app-header-right {
    gap: 4px !important;
  }
  .profile-btn {
    padding-left: 4px !important;
  }
  .profile-btn .username {
    display: none !important;
  }
}
.dark .project-box-footer [style*="background: #fdfdfd"] {
  background: rgba(155, 105, 220, 0.1) !important;
  border-color: rgba(155, 105, 220, 0.2) !important;
  color: #c9a6f5 !important;
}
