@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #4f46e5;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gray-light: #f3f4f6;
}
body {
  font-family: "Outfit", sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
}
.card {
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 1rem;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: #4338ca;
}
.btn-success {
  background-color: var(--success);
  color: white;
}
.btn-success:hover {
  background-color: #059669;
}
.btn-danger {
  background-color: var(--danger);
  color: white;
}
.btn-danger:hover {
  background-color: #dc2626;
}
.btn-outline {
  border: 1px solid #d1d5db;
  color: #374151;
}
.btn-outline:hover {
  background-color: var(--gray-light);
}
.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.modal {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.3s ease-in-out;
}
.modal:not(.hide) {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.modal-content {
  border-radius: 1rem;
}
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.conta-card {
  transition: all 0.3s ease;
  border-left: 4px solid;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.conta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.conta-card.atrasada {
  border-left-color: var(--danger);
}
.conta-card.hoje {
  border-left-color: var(--warning);
}
.conta-card.futura {
  border-left-color: #6b7280;
}
.conta-card.paga {
  border-left-color: var(--success);
}

.tab-active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background-color: #e5e7eb;
  overflow: hidden;
}
.progress-value {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 50;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.conta-list {
  min-height: 200px;
  max-height: calc(100vh - 500px);
  overflow-y: auto;
  padding-right: 8px;
}

label:has(input[name="tipo-conta"]:checked) {
  border-color: var(--primary);
  background-color: #eef2ff;
}
label:has(input[name="tipo-conta"]:checked) i,
label:has(input[name="tipo-conta"]:checked) span {
  color: var(--primary);
}
