/* public/css/style.css */
body { font-family: 'Inter', sans-serif; background-color: #f8fafc; padding-top: 80px; padding-bottom: 100px; }
.card { background-color: white; border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.table-input { width: 100%; padding: 0.5rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; text-align: right; font-weight: 500; transition: border-color 0.2s, box-shadow 0.2s; }
.table-input:focus { outline: none; border-color: #2EB285; box-shadow: 0 0 0 2px rgba(46, 178, 133, 0.4); }
.table-input-text { width: 100%; padding: 0.5rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; text-align: left; font-weight: 400; transition: border-color 0.2s; }
.table-input-text:focus { outline: none; border-color: #2EB285; }

/* Section Animation */
.section { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.section.active { display: block; opacity: 1; transform: translateY(0); }

:root { --cor-recursos: #003642; --cor-investimento: #2EB285; }
.price-input-wrapper { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; font-weight: bold; font-size: 1.5rem; line-height: 2rem; color: var(--cor-recursos); }
.price-input-wrapper input { width: 8rem; font-size: 1.5rem; line-height: 2rem; font-weight: bold; color: var(--cor-recursos); text-align: right; border: none; background-color: #f9fafb; padding: 0.25rem 0.5rem; }
.price-input-wrapper input:focus { box-shadow: none; outline: 1px solid var(--cor-investimento); }

.roadmap-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-pr { background-color: #dbeafe; color: #1e40af; }
.badge-rs { background-color: #dcfce7; color: #166534; }
.badge-sp { background-color: #fce7f3; color: #9d174d; }
.badge-sc { background-color: #fef3c7; color: #92400e; }
.input-highlight { background-color: #f0fdf4; border-color: #86efac; }
.unit-select { background: transparent; border: none; font-weight: bold; color: #4b5563; cursor: pointer; outline: none; text-align: right; font-size: 0.875rem; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.btn-delete { color: #ef4444; cursor: pointer; padding: 4px; border-radius: 4px; }
.btn-delete:hover { background-color: #fee2e2; }
.input-readonly { background-color: #f3f4f6; color: #6b7280; border-color: #e5e7eb; cursor: not-allowed; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 0; border: none; width: 90%; max-width: 500px; border-radius: 0.75rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); animation: modalOpen 0.3s ease-out; }
@keyframes modalOpen { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 1.5rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; background-color: #f9fafb; border-top: 1px solid #e5e7eb; border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem; display: flex; justify-content: flex-end; gap: 0.5rem; }

/* FAB Styles */
.fab-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 50; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 1rem; }
.fab-button { width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: linear-gradient(135deg, #003642, #004e5f); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); transition: transform 0.2s, background-color 0.2s; cursor: pointer; border: none; }
.fab-button:hover { transform: scale(1.05); }
.fab-button:active { transform: scale(0.95); }
.fab-menu { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.fab-container.active .fab-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-container.active .fab-button { background: #ef4444; transform: rotate(45deg); }
.fab-item { background-color: white; color: #374151; padding: 0.75rem 1.25rem; border-radius: 0.75rem; font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); text-align: right; cursor: pointer; border: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; transition: all 0.2s; white-space: nowrap; }
.fab-item:hover { background-color: #f0fdf4; color: #003642; transform: translateX(-5px); }
.fab-item.active { background-color: #003642; color: white; border-color: #003642; }
.fab-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(2px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.fab-container.active ~ .fab-overlay { opacity: 1; pointer-events: auto; }