/* Estilos para el frontend público */
.fp-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fp-tab-link.active {
    border-color: #ef4444;
    color: #ef4444;
}

.fp-tab-content {
    display: none;
}

.fp-tab-content:not(.hidden) {
    display: block;
}

/* Asegurar que los inputs tengan border visible */
.fp-dashboard input[type="text"],
.fp-dashboard input[type="number"],
.fp-dashboard input[type="date"],
.fp-dashboard select,
.fp-dashboard textarea {
    border: 1px solid #d1d5db;
}

.fp-dashboard input[type="text"]:focus,
.fp-dashboard input[type="number"]:focus,
.fp-dashboard input[type="date"]:focus,
.fp-dashboard select:focus,
.fp-dashboard textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Lista de movimientos */
.fp-movement-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.fp-movement-item:hover {
    background-color: #f9fafb;
}

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

.fp-amount {
    font-weight: 600;
    font-size: 1.125rem;
}

.fp-amount.positive {
    color: #059669;
}

.fp-amount.negative {
    color: #dc2626;
}

/* Badge */
.fp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #e5e7eb;
    color: #374151;
}

/* Animación de carga */
.fp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.fp-loader {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: fp-spin 1s linear infinite;
}

@keyframes fp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estado vacío */
.fp-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.fp-empty-state svg {
    margin: 0 auto 1rem;
    width: 4rem;
    height: 4rem;
    opacity: 0.5;
}
