/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  line-height: 1.4;
  font-size: 13px;
}

.container {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Header Compacto */
.header {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
}

.header h1 {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header h1 i {
  color: #3b82f6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clock {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-login {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

/* Navegação Compacta */
.tabs {
  display: flex;
  gap: 2px;
  margin: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px;
  border-radius: 6px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.tab-content {
  display: none;
  padding: 0;
  margin: 0;
}

.tab-content.active {
  display: block;
}

/* Cards de Resumo Compactos */
.resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 4px;
  margin: 8px 16px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: white;
  font-size: 0.85rem;
}

.card-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
}

.card-content p {
  color: #94a3b8;
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.percentage, .trend {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
/* Seções Compactas */
section {
  margin: 6px 16px;
}

.section-header {
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-header h3 i {
  color: #3b82f6;
}

/* Pomodoro */
.pomodoro {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.pomodoro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pomodoro-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.timer-display {
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.timer-display span:first-child {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(59,130,246,0.25);
}

.timer-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timer-labels span {
  font-size: 0.72rem;
  color: #a5b4fc;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 3px 6px;
  border-radius: 999px;
}

.progress-ring {
  position: relative;
}

.progress-ring-svg {
  transform: rotate(-90deg);
  width: 60px;
  height: 60px;
}

.progress-ring-circle {
  stroke-dasharray: 169.65;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.15));
}

.progress-ring-progress {
  stroke-dasharray: 169.65;
  stroke-dashoffset: 169.65;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 6px rgba(34,197,94,0.6));
}

.botoes {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botões */
.btn-primary, .btn-secondary, .btn-danger {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-save-stats {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.btn-save-stats:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.pomodoro .btn-primary.active {
  box-shadow: 0 0 0 2px rgba(59,130,246,0.35) inset, 0 8px 24px rgba(59,130,246,0.35);
}

.pomodoro .btn-secondary.active {
  box-shadow: 0 0 0 2px rgba(148,163,184,0.35) inset, 0 8px 24px rgba(148,163,184,0.15);
}

.pomodoro button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* Formulário Compacto */
.form-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
}

.form-compact {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr auto;
  gap: 6px;
  margin-bottom: 8px;
}

input, select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

input::placeholder, textarea::placeholder {
  color: #64748b;
}

/* Estilos para select e options */
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

select option {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 8px;
  border: none;
}

select option:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

select option:checked,
select option:focus {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

/* Checkbox personalizado */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #3b82f6;
  border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Tabelas */
.table-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(255, 255, 255, 0.05);
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

th i {
  margin-right: 8px;
  color: #3b82f6;
}

td {
  color: #e2e8f0;
  font-size: 0.75rem;
}

tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-ok {
  color: #10b981;
  font-weight: 600;
}

.status-ruim {
  color: #ef4444;
  font-weight: 600;
}

/* Gráficos */
.chart-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
}

canvas {
  background: transparent;
  max-height: 200px;
}

/* Lista de Contatos */
.lista-contatos {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
}

.contacts-list {
  max-height: 250px;
  overflow-y: auto;
}

.contacts-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts-list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contacts-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.contacts-list .info {
  flex: 1;
}

.contacts-list .info strong {
  color: #f8fafc;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
  font-size: 0.8rem;
}

.contacts-list .info span {
  color: #3b82f6;
  font-size: 0.7rem;
}

.contacts-list .acoes {
  display: flex;
  gap: 8px;
}

.contacts-list button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contacts-list button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.contacts-list .editar:hover {
  color: #3b82f6;
}

.contacts-list .remover:hover {
  color: #ef4444;
}

/* Lembranças */
.lembrancas-ativas {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.section-header-compact h4 {
  font-size: 0.7rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
}

.lembrancas-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 4px;
}

.lembranca-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lembranca-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

.lembranca-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lembranca-content strong {
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
}

.lembranca-desc {
  color: #94a3b8;
  font-size: 0.7rem;
}

.lembranca-hora {
  color: #3b82f6;
  font-size: 0.65rem;
  margin-top: 2px;
}

.lembranca-actions {
  display: flex;
  gap: 4px;
}

.lembranca-actions button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.btn-converter:hover {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
}

.btn-concluir:hover {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.btn-remover:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.lembranca-empty {
  text-align: center;
  padding: 12px;
  color: #94a3b8;
  font-size: 0.7rem;
  font-style: italic;
}

/* Sistema de Abonos */
.abonos-section {
  margin-bottom: 8px;
}

.abonos-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-abono {
  flex: 1;
  min-width: 120px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-abono:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-abono-remover {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-abono-remover:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.abono-info {
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
}

.abono-status {
  font-size: 0.7rem;
  font-weight: 500;
  color: #fbbf24;
}

.abono-status.abono-ativo {
  color: #fbbf24;
}

/* Dropdown de Contatos */
.lista-contatos-dropdown {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0;
  margin: 6px 16px;
  overflow: hidden;
}

.dropdown-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-toggle i:first-child {
  margin-right: 6px;
  color: #3b82f6;
}

#chevronContatos {
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.dropdown-content {
  display: none;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contacts-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts-list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contacts-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.contacts-list .info {
  flex: 1;
}

.contacts-list .info strong {
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 600;
}

.contacts-list .info span {
  color: #60a5fa;
  font-size: 0.65rem;
  font-weight: 500;
}

/* Relatórios */
.relatorios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 16px;
}

.daily-report, .performance-analysis {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
}

.report-stats-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.stat-compact {
  text-align: center;
  padding: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.report-cards, .projection-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}

.report-card, .projection-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
}

.report-card h4, .projection-card h4 {
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.report-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 3px;
}

.stat-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-compact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.analysis-item:last-child {
  border-bottom: none;
}

.analysis-label {
  color: #94a3b8;
}

.analysis-value {
  color: #f8fafc;
  font-weight: 500;
}

.projection-content {
  text-align: center;
}

.projection-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 8px;
}

.projection-details p {
  color: #94a3b8;
  margin-bottom: 16px;
}

.projection-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.projection-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.recommendations {
  color: #e2e8f0;
  line-height: 1.6;
}

/* Anotações */
.notes-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
}

.notes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.notes-input {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notes-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notes-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

#notesList {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

#notesList li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

#notesList li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.note-content {
  color: #e2e8f0;
  margin-bottom: 6px;
  line-height: 1.4;
  font-size: 0.75rem;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #94a3b8;
}

.note-type {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.note-type.todo {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.note-type.important {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.note-type.note {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Templates Section */
.templates-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
}

.templates-display {
  margin-bottom: 12px;
}

.template-form-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.template-form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}

.template-form-card h4 {
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-form-card h4 i {
  color: #3b82f6;
}

.template-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-form input[type="text"] {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.template-form input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.05);
}

.template-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.template-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.05);
}

.template-form textarea::placeholder {
  color: #64748b;
}

.template-form .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}

.template-categories label {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.category-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.templates-display {
  margin-top: 16px;
}

.templates-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.template-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.template-card-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  flex: 1;
  line-height: 1.3;
}

.template-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.template-card-actions button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.template-card-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
}

.template-card-actions button:first-child:hover {
  color: #3b82f6;
}

.template-card-actions .remover:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.template-card-text {
  color: #cbd5e1;
  font-size: 0.7rem;
  line-height: 1.5;
  margin-bottom: 0;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.template-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-category-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Details Wrapper */
.details-wrapper {
  position: relative;
  display: flex;
  gap: 8px;
}

.details-wrapper input {
  flex: 1;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Modal de seleção de templates */
.template-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.template-modal.active {
  display: flex;
}

.template-modal-content {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.template-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.template-modal-header button {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}

.template-modal-header button:hover {
  color: #e2e8f0;
}

.template-modal-templates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-modal-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-modal-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.template-modal-item-title {
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: 8px;
}

.template-modal-item-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Histórico Diário */
.historico-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
}

.historico-login-msg {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 20px;
}

.login-msg-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
}

.login-msg-card i {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 16px;
}

.login-msg-card h4 {
  color: #f8fafc;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.login-msg-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.calendar-selector {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-picker {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-picker:hover {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

.date-picker:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-calendar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-calendar:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  transform: translateY(-1px);
}

.btn-calendar:active {
  transform: translateY(0);
}

.historico-resumo {
  margin-bottom: 8px;
}

.historico-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  flex-wrap: wrap;
}

.historico-stat {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.historico-stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 3px;
}

.historico-stat-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.historico-lista {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.historico-grafico {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
}

#graficoHistorico {
  max-height: 250px;
  background: transparent;
}

/* Responsividade */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
    padding: 10px 15px;
  }
  
  .tabs {
    flex-direction: column;
    margin: 12px 15px;
  }
  
  section {
    margin: 0 15px 10px 15px;
  }
  
  section:first-of-type {
    margin-top: 12px;
  }
  
  .resumo {
    grid-template-columns: 1fr;
  }
  
  .pomodoro-container {
    flex-direction: column;
    text-align: center;
  }
  
  .form {
    flex-direction: column;
  }
  
  .notes-container {
    grid-template-columns: 1fr;
  }
  
  .report-stats {
    flex-direction: column;
  }
  
  .calendar-header {
    flex-direction: column;
  }
  
  .date-picker {
    width: 100%;
  }
  
  .historico-card {
    flex-direction: column;
  }
  
  .historico-stat {
    min-width: auto;
  }
}

