/**
 * Estilos personalizados para o sistema Meu Controle
 */

/* Estilos gerais */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Correções para selects */
select {
    appearance: auto !important;
}

/* Largura fixa para filtro de conta no extrato bancário */
#filtroContaExtrato {
    width: 288px !important;
    min-width: 288px !important;
    max-width: 288px !important;
}

/* Estilos para tabelas */
.table-responsive {
    overflow-x: auto;
}

.table-hover tr:hover {
    background-color: rgba(243, 244, 246, 0.8);
}

/* Estilos para cards */
.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Estilos para modais */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Estilos para inputs */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Estilos para botões */
button:focus {
    outline: none;
}

/* Estilos para status */
.status-pendente {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-efetivado {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-cancelado {
    background-color: #FEE2E2;
    color: #B91C1C;
}

/* Estilos para valores */
.valor-positivo {
    color: #059669;
}

.valor-negativo {
    color: #DC2626;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Estilos para mensagens de alerta */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Estilos para paginação */
.pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.pagination li {
    margin: 0 0.25rem;
}

.pagination li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #3b82f6;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

.pagination li.active a {
    color: #fff;
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Estilos para filtros */
.filtro-container {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

/* Estilos para selects customizados */
.select-container {
    position: relative;
}

.select-container select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Correção para z-index de selects */
.select-container select {
    z-index: 10;
}

/* Estilos para inputs monetários */
.input-money {
    position: relative;
}

.input-money::before {
    content: "R$";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.input-money input {
    padding-left: 2rem;
}
