@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

.bg-primary {
    background-color: #d81b60;
}

.text-primary {
    color: #d81b60;
}

.border-primary {
    border-color: #d81b60;
}

.hover-bg-primary:hover {
    background-color: #ad1457;
}


/* Custom Scrollbar - Visível mas moderna */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.pro-locked {
    position: relative;
    user-select: none;
}

.pro-locked .blur-content {
    filter: grayscale(100%) opacity(0.4) blur(2px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.pro-locked-badge {
    cursor: pointer;
    pointer-events: auto;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #d81b60 0%, #ad1457 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(216, 27, 96, 0.4);
    z-index: 50;
    white-space: nowrap;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    border: 2px solid white;
}

.pro-locked .pro-locked-badge {
    display: flex;
}

.ingredient-row {
    transition: all 0.3s ease;
}

.ingredient-row:hover {
    background-color: #f8fafc;
}

.calc-input:focus {
    border-color: #d81b60;
    outline: 2px solid #d81b60;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Estilos específicos para o botão de toggle de cupons */
#toggle-coupon-system:checked + .dot {
    transform: translateX(100%);
}

div.relative:has(> #toggle-coupon-system:checked) {
    background-color: #d81b60 !important;
}

.accordion-content {
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

.pb-safe {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.bottom-bar {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.nav-tab {
    transition: all 0.2s ease;
}

.nav-tab.active {
    color: #d81b60;
}

.nav-tab.active ion-icon {
    transform: scale(1.15);
}

.nav-tab ion-icon {
    transition: transform 0.2s ease;
}

.bottom-sheet {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sidebar-notif {
    display: none;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}
