:root {
    --primary: #ffffff;
    --success: #00b894;
    --danger: #d63031;
    --bg: #151818;
    --card-bg: #1e2222;
    --border-color: #2d3436;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg); 
}

::-webkit-scrollbar-thumb {
    background: var(--border-color); 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #636e72; 
}

/* Navbar */
.navbar {
    background-color: #282b2b;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.navbar-menu a:hover {
    opacity: 0.7;
}

/* Pinned Goal Bar */
.pinned-goal-bar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pinned-label {
    white-space: nowrap;
    color: #b2bec3;
}

.pinned-progress-wrapper {
    flex: 1;
    height: 8px;
    background-color: #2d3436;
    border-radius: 4px;
    overflow: hidden;
}

.pinned-progress-bar {
    height: 100%;
    background-color: #6c5ce7;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.main-title {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--primary);
}

.card-title {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-in .card-value { color: var(--success); }
.card-out .card-value { color: var(--danger); }

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin: 1.5rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.table-section {
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    padding: 0 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #2d3436;
    color: var(--primary);
    transition: all 0.3s ease;
}

form input:focus, form select:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.2);
}

form button {
    padding: 10px;
    border-radius: 8px;
    background-color: var(--success);
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

th {
    text-align: left;
    color: #b2bec3;
    font-weight: 600;
}

td {
    text-align: left;
    color: var(--primary);
}

tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.table-container {
    overflow-x: auto;
    max-width: 100%;
}

.chart-container {
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chart-wrapper {
    flex: 1;
    position: relative;
    min-height: 0;
    width: 100%;
}

.chart-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.btn-edit, .btn-delete {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-edit { background-color: #ffeaa7; margin-right: 5px; }
.btn-edit:hover { background-color: #fdcb6e; transform: scale(1.01); }

.btn-delete { background-color: #ff7675; }
.btn-delete:hover { background-color: #d63031; transform: scale(1.05); }

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Goals Section */
.goals-section {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.goal-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.goal-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.goal-progress-text {
    font-size: 0.9rem;
    color: #b2bec3;
}

.goal-remaining {
    font-size: 0.8rem;
    color: #636e72;
    text-align: right;
}

.actions-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem auto;
    flex-wrap: wrap;
}

.btn-action {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    border-color: var(--success);
    color: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.1);
}

.goals-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.btn-create-goal {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-create-goal:hover {
    border-color: var(--success);
    color: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.1);
}

/* Progress Bar Styling */
progress {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    border: none;
    background-color: #2d3436;
}

progress::-webkit-progress-bar {
    background-color: #2d3436;
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background-color: #6c5ce7; /* Roxo destaque */
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}

progress::-moz-progress-bar {
    background-color: #6c5ce7;
    border-radius: 4px;
}

/* Modals */
dialog {
    margin: auto;
    background: transparent;
    border: none;
    padding: 0;
    width: 90%;
    max-width: 500px;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}
.hidden {
    display: none !important;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tag-modal {
    max-width: 960px;
    width: min(960px, 95vw);
}

.tag-modal .modal-content {
    padding: 1.25rem;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 10px;
}

.btn-close {
    background: none;
    border: none;
    color: #636e72;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close:hover {
    color: var(--danger);
}

.btn-header {
    background-color: var(--success);   
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-header:hover {
    background-color: #16ebc0;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--danger);
}

.btn-config {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
    margin-left: auto;
    position: relative;
}

.btn-config:hover {
    color: var(--success);
}

.plus-i {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

/* Lógica do Tooltip */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}
/* Container principal do topo da tabela */
.table-header-main {
    display: flex;
    justify-content: space-between; /* Título à esquerda, Botão à direita */
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Alinhamento do H3 com o Ícone */
.title-with-info {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaçamento entre o texto e o ícone de info */
}

.title-with-info h3 {
    margin: 0; /* Remove margens padrão que podem desalinhá-lo */
}

/* Ajuste fino na posição do ícone se necessário */
.info-icon {
    display: block;
    width: 16px;
    height: 16px;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #2d3436;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    left: 125%; /* Afasta o texto para a direita do ícone */
    top: 50%;
    transform: translateY(-50%) translateX(10px); /* Centraliza verticalmente e cria um respiro horizontal */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.8rem;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* Seta do Tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%; /* Posiciona a seta na borda esquerda do balão */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #2d3436 transparent transparent;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0); /* Efeito de deslize suave ao aparecer */
}

.tooltip-wrapper:hover .info-icon {
    color: var(--white);
}

/* Seção de Tags */
.tags-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 10px;
}

.tag-modal-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.tag-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tag-panel-help {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.4;
}

.view-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.add-tag-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

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

.tags-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.tags-grid-subtitle {
    font-size: 0.8rem;
    color: #636e72;
}

.tags-grid-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    max-height: 360px;
    overflow: auto;
}

.tags-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.tag-item-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2d3436;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tag-item-admin:hover {
    border-color: #3d4141;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.tag-info-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tag-info-admin span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-actions-admin {
    display: flex;
    gap: 6px;
}

.btn-small-icon {
    background: transparent;
    border: 1px solid #3d4141;
    color: #b2bec3;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small-icon:hover {
    color: var(--white);
    border-color: var(--success);
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.1);
}

.tag-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
    .tag-modal-layout {
        grid-template-columns: 1fr;
    }
}
.btn-add-tag {
    background: transparent;
    border: 1px dashed #636e72;
    color: #b2bec3;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-tag:hover {
    border-color: var(--success);
    color: var(--success);
    background: rgba(0, 184, 148, 0.05);
}

.btn-config:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Alinhamento geral de ícones em botões */
.btn-header, .btn-icon, .btn-edit, .btn-delete, .btn-config {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espaço entre ícone e texto */
}

/* Tamanho padrão para os ícones */
[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2px; /* Espessura do traço */
}

/* Ajuste específico para os cards */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-in i { color: var(--success); }
.card-out i { color: var(--danger); }
.card-total i { color: #6c5ce7; }

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
/* Goals List inside Modal */
.goals-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.goal-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.goal-actions-btn {
    display: flex;
    gap: 8px;
}

.btn-pin {
    background: none;
    border: none;
    cursor: pointer;
    color: #636e72;
    transition: color 0.3s;
}

.btn-pin.active {
    color: #fdcb6e; /* Amarelo quando fixado */
    filter: drop-shadow(0 0 5px rgba(253, 203, 110, 0.5));
}

.goal-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    color: #b2bec3;
}

.btn-pin:hover {
    color: #fdcb6e;
}

/* Animation */
.animate-entry {
    animation: slideUpFade 0.4s ease-out forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tasks */
.tasks-container {
    display: flex;
    flex-direction: column;
    max-height: 300px;
}

.task-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    margin-top: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.task-check {
    margin-right: 10px;
    accent-color: var(--success);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-text {
    flex: 1;
    font-size: 0.95rem;
}

.task-done .task-text {
    text-decoration: line-through;
    color: #636e72;
}

/* Settings Categories */
.settings-category-list {
    list-style: none;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.settings-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

.add-category-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

/* Animation for Loader */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Container do Formulário */
#finance-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

/* Agrupamento de Label e Input */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide em duas colunas iguais */
    gap: 1rem;
}

/* Estilo dos Labels */
.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #b2bec3; /* Cor levemente opaca */
    margin-left: 2px;
}

/* Estilo dos Inputs e Selects */
.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: #282b2b; /* Um pouco mais claro que o fundo do modal */
    border: 1px solid #3d4141;
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Efeito de Foco */
.input-group input:focus, 
.input-group select:focus {
    outline: none;
    border-color: var(--success);
    background-color: #2d3436;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1); /* Glow sutil */
}

/* Botão Principal */
.btn-primary {
    margin-top: 0.5rem;
    padding: 14px;
    border-radius: 10px;
    background-color: var(--success);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

.input-group select {
    /* Remove a seta e estilos padrões do navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Adiciona sua própria seta usando uma imagem SVG */
    /* Você pode pegar um ícone 'chevron-down' no Lucide e usar aqui */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23b2bec3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center; /* Posiciona a seta à direita */
    background-size: 16px; /* Tamanho da seta */
    padding-right: 40px; /* Espaço para o texto não ficar em cima da seta */
}

.transaction-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* Grade de Seleção de Ícones */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #282b2b;
    border-radius: 10px;
    border: 1px solid #3d4141;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    color: #b2bec3;
}

.icon-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.icon-option.selected {
    border-color: var(--success);
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
}

/* Customização da scrollbar da grade */
.icon-selector::-webkit-scrollbar { width: 5px; }
.icon-selector::-webkit-scrollbar-thumb { background: #3d4141; border-radius: 10px; }

.categories-list {
    background: #282b2b;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #3d4141;
}

.categories-list.hidden { display: none; }

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #3d4141;
    transition: background 0.2s;
}

.category-item:hover { background: rgba(255, 255, 255, 0.05); }


.category-actions {
    display: flex;
    gap: 8px;
}

.btn-mini-edit { color: var(--success); cursor: pointer; background: none; border: none; }
.btn-mini-delete { color: var(--danger); cursor: pointer; background: none; border: none; }

.separator { border: 0; border-top: 1px solid #3d4141; margin: 1.5rem 0; }

.color-picker { width: 100%; height: 45px; border-radius: 8px; border: none; cursor: pointer; background: none; }

.btn-cancel {
    margin-top: 0.5rem;
    padding: 14px;
    border-radius: 10px;
    background-color: #616161;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cancel:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

.icon-opt {
    width: 32px;
    height: 32px;
    stroke-width: 5px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-opt:hover {
    border: 1px solid var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.icon-opt.selected {
    border: 1px solid var(--success);
    color: var(--success);
    background: rgba(0, 184, 148, 0.1);
}

.tags-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.btn-edit-cat {
    color: var(--success);
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s, box-shadow 0.2s;
}

.btn-edit-cat:hover {
    color: #ffd84d;
    box-shadow: 0 0 5px rgba(184, 153, 0, 0.5);
    border: 1px solid #ffd84d;
}

.btn-trash-cat {
    color: var(--danger);
    cursor: pointer;
    transition: color 0.2s, box-shadow 0.2s;
}

.btn-trash-cat:hover {
    color: var(--danger);
    box-shadow: 0 0 5px rgba(255, 118, 117, 0.5);
    border: 1px solid var(--danger);
}