/* ========== FONTES ========== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap");

/* Dashboard */
.dashboard-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #5b6ded 0%, #4f46e5 100%);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: clamp(260px, 25vw, 320px);
  background: linear-gradient(135deg, #5b6ded 20%, #4f46e5 80%);
  color: white;
  padding: clamp(20px, 3vw, 30px) clamp(15px, 2.5vw, 20px);
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 15px);
  margin-bottom: clamp(30px, 5vw, 40px);
  padding-bottom: clamp(15px, 3vw, 20px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo-img {
  width: clamp(50px, 8vw, 70px);
  height: clamp(50px, 8vw, 70px);
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: white;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.sidebar-subtitle {
  font-size: clamp(11px, 2vw, 14px);
  opacity: 0.7;
  margin: clamp(3px, 1vw, 5px) 0 0 0;
  color: white;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: clamp(3px, 1vw, 5px);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  padding: clamp(8px, 2vw, 10px) clamp(10px, 2vw, 15px);
  color: white;
  text-decoration: none;
  font-size: clamp(14px, 2.5vw, 18px);
  font-family: "Inter", sans-serif;
  border-radius: 8px;
  transition: background-color 0.1s ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav .active a {
  background: rgba(0, 0, 0, 0.2);
  border-left: 5px solid #10b981;
  border-radius: 0 8px 8px 0;
}

.sidebar-nav .nav-icon {
  font-size: 22px;
}

/* Logout */
.logout-item {
  margin-top: auto;
  padding-top: clamp(12px, 2.5vw, 15px);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.logout-item a {
  background: #ef4444;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 2.5vw, 18px);
  justify-content: center;
  padding: clamp(8px, 2vw, 10px) clamp(10px, 2vw, 15px);
}

.logout-item a:hover {
  background: #dc2626;
}

/* Conteúdo principal */
.dashboard-main {
  flex: 1;
  background: white;
  overflow: hidden;
  padding: clamp(20px, 4vw, 30px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 100vh;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  overflow: hidden;
}

/* Header */
.dashboard-header {
  margin-bottom: clamp(20px, 4vw, 25px);
}

.dashboard-header h1 {
  font-size: clamp(24px, 5vw, 32px);
  color: #333;
  margin-bottom: clamp(4px, 1vw, 5px);
  font-family: "Poppins", sans-serif;
}

.dashboard-header p {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #666;
  font-family: "Inter", sans-serif;
}

/* Cards */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(12px, 2vw, 15px);
  margin-bottom: clamp(25px, 4vw, 30px);
}

.stat-card {
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: clamp(16px, 3vw, 20px) clamp(12px, 2.5vw, 15px);
  text-align: center;
  transition: all 0.1s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #5b6ded;
  box-shadow: 0 5px 15px rgba(91, 109, 237, 0.2);
}

.stat-number {
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 800;
  color: #5b6ded;
  margin-bottom: clamp(3px, 1vw, 5px);
  font-family: "Poppins", sans-serif;
}

.stat-description {
  font-size: clamp(12px, 2vw, 16px);
  color: #333;
  font-family: "Inter", sans-serif;
}

/* Tarefas */
.tasks-section {
  margin-bottom: clamp(20px, 4vw, 25px);
}

.tasks-title {
  font-size: clamp(20px, 4vw, 24px);
  color: #1f2937;
  margin-bottom: clamp(4px, 1vw, 5px);
  font-family: "Poppins", sans-serif;
  border-bottom: 3px solid #5b6ded;
  padding-bottom: clamp(6px, 1vw, 8px);
}

.tasks-subtitle {
  font-size: clamp(12px, 2vw, 15px);
  color: #666;
  margin-bottom: clamp(12px, 2.5vw, 15px);
  font-family: "Inter", sans-serif;
}

/* Estado vazio */
.tasks-empty-state {
  background: #f3f4f6;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: clamp(30px, 6vw, 40px) clamp(15px, 3vw, 20px);
  text-align: center;
}

.empty-icon {
  font-size: clamp(40px, 10vw, 60px);
  margin-bottom: clamp(8px, 2vw, 10px);
}

.empty-divider {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
}

.empty-message {
  font-size: clamp(18px, 4vw, 24px);
  color: #333;
  margin-bottom: clamp(6px, 1.5vw, 8px);
  font-family: "Poppins", sans-serif;
}

.empty-action {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #666;
  margin-bottom: clamp(15px, 3vw, 20px);
}

/* Botão */
.btn-create-task {
  background: #5b6ded;
  color: white;
  border: none;
  border-radius: 40px;
  padding: clamp(12px, 2.5vw, 15px) clamp(60px, 10vw, 100px);
  font-size: clamp(16px, 3vw, 20px);
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.btn-create-task:hover {
  background: #4f46e5;
}

/* Footer */
.dashboard-footer {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  width: 90%;
  max-width: 650px;
  max-height: 80vh;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(91, 109, 237, 0.15);
}

.modal-header {
  background: linear-gradient(135deg, #5b6ded 20%, #4f46e5 80%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 24px;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.modal-subtitle {
  font-size: 16px;
  color: #6b7280;
  padding: 12px 20px;
  border-bottom: 2px solid #e5e7eb;
  font-family: "Inter", sans-serif;
}

.modal-content {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(80vh - 110px);
}

.profile-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 5px;
  border-left: 4px solid #5b6ded;
  padding-left: 10px;
  font-family: "Poppins", sans-serif;
}

.section-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-family: "Inter", sans-serif;
}

.info-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
}

.info-group {
  margin-bottom: 12px;
}

.info-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 3px;
}

.info-value {
  font-size: 18px;
  color: #333;
  background: white;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* Botões do modal */
.btn-save {
  background: #5b6ded;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 18px;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  transition: background-color 0.1s ease;
  width: 100%;
}

.btn-save:hover {
  background: #4f46e5;
}

.separator {
  height: 1px;
  background: #333;
  margin: 15px 0;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.settings-info h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 2px;
}

.settings-info p {
  font-size: 13px;
  color: #666;
}

/* Toggle simples */
.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5db;
  border-radius: 26px;
  border: 2px solid #e5e7eb;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
  background: #5b6ded;
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.security-item span {
  font-size: 16px;
  color: #333;
}

/* Botões de segurança */
.btn-security,
.btn-danger {
  background: #5b6ded;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 15px;
  font-size: 15px;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.btn-security:hover,
.btn-danger:hover {
  background: #4f46e5;
}

/* Responsividade */
@media (max-width: 1024px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    width: clamp(260px, 20vw, 300px);
  }

  .content-wrapper {
    max-width: 950px;
  }
}

@media (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
    padding: 15px 12px;
    flex-direction: row;
    align-items: center;
  }

  .sidebar-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }

  .sidebar-nav li {
    flex: 1 1 auto;
    min-width: 50px;
  }

  .sidebar-nav a {
    justify-content: center;
    font-size: 12px;
    padding: 8px 6px;
  }

  .sidebar-nav .active a {
    border-left: none;
    border-bottom: 3px solid #10b981;
  }

  .logout-item {
    margin-left: auto;
    padding-top: 0;
    border-top: none;
    min-width: 50px;
  }

  .logout-item a {
    font-size: 12px;
    padding: 8px 6px;
  }

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

  .dashboard-main {
    padding: 15px;
  }

  .content-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .dashboard-wrapper {
    width: 100vw;
    min-height: 100vh;
  }

  .sidebar {
    padding: 12px 10px;
    gap: 4px;
  }

  .sidebar-header {
    gap: 8px;
  }

  .sidebar-logo-img {
    width: 36px;
    height: 36px;
  }

  .sidebar-title {
    font-size: 16px;
  }

  .sidebar-nav ul {
    gap: 4px;
  }

  .sidebar-nav a {
    font-size: 10px;
    padding: 6px 4px;
  }

  .sidebar-nav .nav-icon {
    font-size: 18px;
  }

  .logout-item a {
    font-size: 10px;
    padding: 6px 4px;
  }

  .dashboard-main {
    padding: 12px;
  }

  .dashboard-header {
    margin-bottom: 15px;
  }

  .dashboard-header h1 {
    font-size: 18px;
  }

  .dashboard-header p {
    font-size: 11px;
  }

  .stats-container {
    gap: 10px;
  }

  .stat-card {
    padding: 12px 10px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-description {
    font-size: 10px;
  }

  .tasks-title {
    font-size: 16px;
  }

  .tasks-subtitle {
    font-size: 11px;
  }

  .tasks-empty-state {
    padding: 20px 12px;
  }

  .empty-icon {
    font-size: 36px;
  }

  .empty-message {
    font-size: 14px;
  }

  .btn-create-task {
    padding: 10px 30px;
    font-size: 13px;
  }

  .modal-container {
    width: 95vw;
    max-height: 90vh;
  }

  .modal-tarefa .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .modal-tarefa .form-actions {
    flex-direction: column-reverse;
  }

  .btn-cancelar,
  .btn-criar {
    width: 100%;
    font-size: 13px;
    padding: 10px 20px;
  }
}

@media (max-width: 320px) {
  .sidebar {
    padding: 10px 8px;
  }

  .sidebar-logo-img {
    display: none;
  }

  .sidebar-title {
    font-size: 14px;
  }

  .sidebar-nav a {
    font-size: 9px;
    padding: 4px 3px;
  }

  .dashboard-main {
    padding: 10px;
  }

  .dashboard-header h1 {
    font-size: 16px;
  }

  .stat-number {
    font-size: 20px;
  }

  .btn-create-task {
    padding: 8px 20px;
    font-size: 11px;
  }
}
/* Modal de Tarefa */
.modal-tarefa {
  max-width: 600px;
}

.modal-tarefa .form-group {
  margin-bottom: 20px;
}

.modal-tarefa .form-label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.modal-tarefa .required {
  color: #ef4444;
  margin-left: 2px;
}

.modal-tarefa .form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  transition: border-color 0.1s ease;
  background: white;
}

.modal-tarefa .form-input:focus {
  outline: none;
  border-color: #5b6ded;
}

.modal-tarefa .form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  resize: vertical;
  background: white;
}

.modal-tarefa .form-textarea:focus {
  outline: none;
  border-color: #5b6ded;
}

.modal-tarefa .form-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  background: white;
  cursor: pointer;
}

.modal-tarefa .form-select:focus {
  outline: none;
  border-color: #5b6ded;
}

.modal-tarefa .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.modal-tarefa .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.modal-tarefa .form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-cancelar {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-cancelar:hover {
  background: #e5e7eb;
  border-color: #5b6ded;
}

.btn-criar {
  background: #5b6ded;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.btn-criar:hover {
  background: #4f46e5;
}

/* Responsividade */
@media (max-width: 768px) {
  .modal-tarefa .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .modal-tarefa .form-actions {
    flex-direction: column-reverse;
  }

  .btn-cancelar,
  .btn-criar {
    width: 100%;
    text-align: center;
  }
}
/* ===== ESTILOS PARA A LISTA DE TAREFAS ===== */
.tasks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.task-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(91, 109, 237, 0.15);
  border-color: #5b6ded;
}

.task-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.task-card p {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 15px;
  line-height: 1.5;
  flex: 1;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #6b7280;
}

.task-meta span {
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Cores por prioridade */
.task-card.prioridade-baixa {
  border-left: 6px solid #10b981;
}
.task-card.prioridade-media {
  border-left: 6px solid #f59e0b;
}
.task-card.prioridade-alta {
  border-left: 6px solid #ef4444;
}
.task-card.prioridade-urgente {
  border-left: 6px solid #7f1d1d;
  background: #fff5f5;
}

/* Badge de status */
.meta-status {
  font-weight: 600;
}
.status-pendente {
  background: #fef3c7;
  color: #92400e;
}
.status-em-andamento {
  background: #dbeafe;
  color: #1e40af;
}
.status-concluida {
  background: #d1fae5;
  color: #065f46;
}
.status-cancelada {
  background: #fee2e2;
  color: #991b1b;
}

/* Botões de ação */
.task-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-concluir,
.btn-editar {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s ease;
  flex: 1;
  font-family: "Inter", sans-serif;
}

.btn-concluir {
  background: #10b981;
  color: white;
}
.btn-concluir:hover {
  background: #059669;
}

.btn-editar {
  background: #5b6ded;
  color: white;
}
.btn-editar:hover {
  background: #4f46e5;
}
/* ===== ESTILOS PARA A LISTA DE TAREFAS ===== */
.tasks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.task-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(91, 109, 237, 0.15);
  border-color: #5b6ded;
}

.task-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.task-card p {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 15px;
  line-height: 1.5;
  flex: 1;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #6b7280;
}

.task-meta span {
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Cores por prioridade */
.task-card.prioridade-baixa {
  border-left: 6px solid #10b981;
}
.task-card.prioridade-media {
  border-left: 6px solid #f59e0b;
}
.task-card.prioridade-alta {
  border-left: 6px solid #ef4444;
}
.task-card.prioridade-urgente {
  border-left: 6px solid #7f1d1d;
  background: #fff5f5;
}

/* Badge de status */
.meta-status {
  font-weight: 600;
}
.status-pendente {
  background: #fef3c7;
  color: #92400e;
}
.status-em-andamento {
  background: #dbeafe;
  color: #1e40af;
}
.status-concluida {
  background: #d1fae5;
  color: #065f46;
}
.status-cancelada {
  background: #fee2e2;
  color: #991b1b;
}

/* Botão de ação */
.task-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-concluir {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s ease;
  flex: 1;
  font-family: "Inter", sans-serif;
  background: #10b981;
  color: white;
}

.btn-concluir:hover {
  background: #059669;
}

/* Card ativo */
.stat-card.active {
  border-color: #5b6ded;
  background: #e0e7ff;
  box-shadow: 0 0 0 2px #5b6ded;
}
