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

/* Reset e Base */
html, body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* Sistema de Notificações */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    min-width: 320px;
}

.notification.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-success .notification-icon {
    background: #10B981;
    color: white;
}

.notification-error .notification-icon {
    background: #EF4444;
    color: white;
}

.notification-warning .notification-icon {
    background: #F59E0B;
    color: white;
}

.notification-info .notification-icon {
    background: #BA431C;
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-success .notification-title {
    color: #10B981;
}

.notification-error .notification-title {
    color: #EF4444;
}

.notification-warning .notification-title {
    color: #F59E0B;
}

.notification-info .notification-title {
    color: #BA431C;
}

.notification-message {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #4B5563;
}

/* Responsivo */
@media (max-width: 640px) {
    #notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* Sidebar & Mobile Navigation */
.sidebar {
    width: 320px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 320px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    max-width: 100%;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
        padding-bottom: 0;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .main-content > main {
        padding-bottom: 150px !important;
        min-height: calc(100vh - 70px);
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        height: 70px;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 12px;
        border-radius: 12px;
        text-decoration: none;
        color: #6B7280;
        transition: all 0.2s;
        flex: 1;
        max-width: 100px;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: #2563eb;
        background: rgba(37, 99, 235, 0.1);
    }
    
    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
        font-weight: 500;
    }

    /* Popover de Mais (abre para cima) */
    #mobile-more-menu {
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    #mobile-more-menu .feather,
    #mobile-more-menu svg {
        width: 16px;
        height: 16px;
    }
}

/* Modal de Confirmação */
#confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#confirm-modal.show {
    display: flex;
}

.confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
}

.confirm-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    animation: scaleIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-icon.danger {
    background: #FEE2E2;
    color: #EF4444;
}

.confirm-icon.warning {
    background: #FEF3C7;
    color: #F59E0B;
}

.confirm-icon.info {
    background: #DBEAFE;
    color: #3B82F6;
}

.confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
}

.confirm-message {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-btn-cancel {
    background: #F3F4F6;
    color: #374151;
}

.confirm-btn-cancel:hover {
    background: #E5E7EB;
}

.confirm-btn-confirm {
    background: #EF4444;
    color: white;
}

.confirm-btn-confirm:hover {
    background: #DC2626;
}

.confirm-btn-confirm.warning {
    background: #F59E0B;
}

.confirm-btn-confirm.warning:hover {
    background: #D97706;
}

.confirm-btn-confirm.info {
    background: #3B82F6;
}

.confirm-btn-confirm.info:hover {
    background: #2563EB;
}


/* Landing */

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* New Before-After Slider Styles */  
.slider-container {
    margin: 0 auto;
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    border-radius: 0.7rem;
    overflow: hidden;
}

/* Altura reduzida para dispositivos móveis */
@media (max-width: 768px) {
    .slider-container {
        height: 300px;
    }
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Styling the Before/After text */
.before-text,
.after-text {
    position: absolute;
    font-family: system-ui;
    font-size: 14px;
    font-weight: 600;
    color: #3a3a3a;
    z-index: 4;
    padding: 10px 20px;
    background-color: #ffffff9e;
    border-radius: 0.3rem;
    letter-spacing: 2px;
    transition: opacity 0.3s ease-in-out;
}

/* Before text */
.before-text {
    left: 20px;
    top: 20px;
    z-index: 5;
}

/* After text */
.after-text {
    right: 20px;
    top: 20px;
    z-index: 3;
}

/* Hide the After text initially */
.after-image .after-text {
    visibility: visible;
    z-index: 3;
}

.after-image {
    clip-path: inset(0 0 0 50%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0px;
    height: 100%;
    background-color: #fff;
    cursor: pointer;
    z-index: 9999;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    z-index: 1;
}

.pulse-container {
    position: relative;
    display: inline-block;
}

.pulse-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ffffff;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.slider-line svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: pointer;
}

/* Prevent text/image selection while dragging */
.slider-container,
.before-image img,
.after-image img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Garantir que as imagens preencham todo o container e mantenham a proporção */
.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-handle,
.slider-line {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Photo Quantity Slider Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-track {
    background: linear-gradient(to right, #BA431C 0%, #BA431C 100%);
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #BA431C;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(186, 67, 28, 0.4);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(186, 67, 28, 0.6);
}

input[type="range"]::-moz-range-track {
    background: linear-gradient(to right, #BA431C 0%, #BA431C 100%);
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #BA431C;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(186, 67, 28, 0.4);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(186, 67, 28, 0.6);
}

/* Remove outline from all inputs */
input,
textarea,
select {
    outline: 0;
}

input:focus,
textarea:focus,
select:focus {
    outline: 0;
}
