/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1E88E5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1E88E5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #1E88E5;
    width: fit-content;
}

.btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #1E88E5;
    border: 2px solid #1E88E5;
}

.btn-secondary:hover {
    background: #1E88E5;
    color: white;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 1.5rem;
}

.download-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-btn strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-phone {
    width: 250px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.mockup-desktop {
    width: 350px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50px;
    right: -50px;
    z-index: 1;
}

/* Compatibility Section */
.compatibility {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.compatibility-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #1E88E5;
}

.compatibility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.compatibility-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E88E5;
    margin-bottom: 0.5rem;
}

.compatibility-card p {
    color: #666;
    line-height: 1.6;
}

/* White Label Section */
.white-label {
    padding: 80px 0;
    background: white;
}

.white-label-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    color: #1E88E5;
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.white-label-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Product Database Section */
.product-database {
    padding: 80px 0;
    background: white;
}

.database-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.database-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Price Consultation Section */
.price-consultation {
    padding: 80px 0;
    background: #f8f9fa;
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
}

.consultation-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Auxiliary Systems Section */
.auxiliary-systems {
    padding: 80px 0;
    background: white;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.system-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.system-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.system-icon i {
    font-size: 1.5rem;
    color: white;
}

.system-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.system-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* iFood Integration Section */
.ifood-integration {
    padding: 80px 0;
    background: #f8f9fa;
}

.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.integration-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: #1E88E5;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item a {
    color: #1E88E5;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-form input,
.demo-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.demo-form input:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: #1E88E5;
}

.demo-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Edit Mode Styles */
.edit-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.edit-btn {
    background: #1E88E5;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: #1565C0;
    transform: translateY(-2px);
}

.edit-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.edit-panel.active {
    right: 0;
}

.edit-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.edit-panel-header h3 {
    margin: 0;
    color: #333;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.edit-panel-content {
    padding: 1.5rem;
}

.edit-section {
    margin-bottom: 2rem;
}

.edit-section h4 {
    margin-bottom: 1rem;
    color: #333;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.help-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Edit Mode Active Styles */
.edit-mode .editable-text {
    outline: 2px dashed #1E88E5;
    outline-offset: 2px;
    cursor: text;
    transition: all 0.3s ease;
}

.edit-mode .editable-text:hover {
    background: rgba(30, 136, 229, 0.1);
}

.edit-mode .editable-image {
    outline: 2px dashed #1E88E5;
    outline-offset: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-mode .editable-image:hover {
    opacity: 0.8;
}

.edit-mode .editable-link {
    outline: 2px dashed #1E88E5;
    outline-offset: 2px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav {
        gap: 1rem;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .download-buttons {
        justify-content: center;
    }

    .mockup-container {
        flex-direction: column;
        gap: 1rem;
    }

    .mockup-desktop {
        position: static;
        width: 300px;
    }

    .white-label-content,
    .database-content,
    .consultation-content,
    .integration-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .compatibility-grid,
    .features-grid,
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .edit-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        justify-content: center;
    }

    .compatibility-card,
    .feature-card,
    .system-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.compatibility-card,
.feature-card,
.system-card {
    position: relative;
    overflow: hidden;
}

.compatibility-card::before,
.feature-card::before,
.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.1), transparent);
    transition: left 0.5s ease;
}

.compatibility-card:hover::before,
.feature-card:hover::before,
.system-card:hover::before {
    left: 100%;
}


/* Estilos para o seletor de imagens */
.image-selector-area {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.available-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.image-card {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.image-card:hover {
    border-color: #1E88E5;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
}

.image-card.selected {
    border-color: #1E88E5;
    background: #e3f2fd;
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.3);
}

.image-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}

.image-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    word-break: break-word;
}

.no-images {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Melhorias no modal */
.inovar-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.inovar-modal-body h4 {
    color: #1E88E5;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* Responsividade para o seletor */
@media (max-width: 768px) {
    .available-images {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .image-card img {
        height: 60px;
    }
    
    .image-card p {
        font-size: 11px;
    }
}


/* Estilos para botão de exclusão */
.btn-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
    background: #bd2130 !important;
    border-color: #b21f2d !important;
    transform: translateY(0);
}

.btn-danger i {
    margin-right: 5px;
}

/* Melhorias no painel de edição */
.edit-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.edit-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.edit-section h4 {
    color: #1E88E5;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.edit-section .btn {
    margin-bottom: 8px;
    margin-right: 5px;
}

.edit-section .btn:last-child {
    margin-right: 0;
}

/* Responsividade para botões */
@media (max-width: 768px) {
    .edit-section .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}


/* Estilos do Carrossel do Header */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide .mockup-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Controles do Carrossel */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1E88E5;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    border-color: white;
    transform: scale(1.2);
}

/* Animações do carrossel */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide.active .mockup-phone,
.carousel-slide.active .mockup-desktop {
    animation: slideIn 0.8s ease-out;
}

/* Responsividade do carrossel */
@media (max-width: 768px) {
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        display: none;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Efeitos visuais avançados */
.hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(30, 136, 229, 0.1) 0%, 
        transparent 50%, 
        rgba(30, 136, 229, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hover effect no carrossel */
.hero-carousel:hover .carousel-controls {
    opacity: 1;
}

.carousel-controls {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Loading state para imagens */
.carousel-slide img {
    transition: opacity 0.3s ease;
}

.carousel-slide img[src=""] {
    opacity: 0.5;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Autoplay indicator */
.carousel-autoplay-active .indicator.active {
    animation: autoplayProgress 5s linear infinite;
}

@keyframes autoplayProgress {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}


/* Estilos do Gerenciador do Carrossel */
.carousel-slides-manager {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 20px 0;
}

.slide-manager {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #f9f9f9;
    transition: border-color 0.3s ease;
}

.slide-manager:hover {
    border-color: #1E88E5;
}

.slide-manager h4 {
    color: #1E88E5;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.slide-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.image-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-slot label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-preview:hover {
    border-color: #1E88E5;
    background: #f0f8ff;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.upload-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1E88E5;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
}

.image-preview:hover .upload-btn {
    opacity: 1;
}

.upload-btn:hover {
    background: #1976D2;
    transform: translate(-50%, -50%) scale(1.05);
}

.upload-btn i {
    margin-right: 5px;
}

/* Quando há imagem */
.image-preview img[src]:not([src=""]) + .upload-btn {
    background: rgba(30, 136, 229, 0.9);
    backdrop-filter: blur(5px);
}

.carousel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsividade do gerenciador */
@media (max-width: 768px) {
    .slide-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-preview {
        height: 100px;
    }
    
    .carousel-actions {
        flex-direction: column;
    }
    
    .carousel-actions .btn {
        width: 100%;
    }
}

/* Estados de loading */
.image-preview.loading {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Melhorias visuais */
.slide-manager[data-slide="1"] {
    border-left: 4px solid #4CAF50;
}

.slide-manager[data-slide="2"] {
    border-left: 4px solid #FF9800;
}

.slide-manager[data-slide="3"] {
    border-left: 4px solid #9C27B0;
}

/* Tooltips para melhor UX */
.upload-btn::after {
    content: 'Clique para fazer upload';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.upload-btn:hover::after {
    opacity: 1;
}


/* Correções de Cor e Fundo de Imagem */

/* Garantir fundo transparente para imagens */
.editable-image, 
.mockup-phone, 
.mockup-desktop,
.hero-mockup,
.hero-desktop {
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
}

/* Correção para imagens com fundo preto no editor */
.inovar-modal .image-preview img,
.carousel-slide img {
    background: transparent !important;
    background-color: transparent !important;
    object-fit: contain;
    object-position: center;
}

/* Estilo para modo imagem única */
.hero-carousel.single-image-mode {
    position: relative;
}

.hero-carousel.single-image-mode .carousel-slide {
    opacity: 1 !important;
    position: static;
    width: 100%;
    height: 100%;
}

.hero-carousel.single-image-mode .carousel-track {
    transform: none !important;
    width: 100%;
    display: block;
}

/* Estilo para modo carrossel */
.hero-carousel.carousel-mode .carousel-track {
    display: flex;
    width: 300%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel.carousel-mode .carousel-slide {
    width: 33.333%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-carousel.carousel-mode .carousel-slide.active {
    opacity: 1;
}

/* Correção para imagens PNG com transparência */
.editable-image[src*=".png"],
.mockup-phone[src*=".png"],
.mockup-desktop[src*=".png"] {
    background: transparent !important;
    backdrop-filter: none;
}

/* Correção para imagens SVG */
.editable-image[src*=".svg"],
.mockup-phone[src*=".svg"],
.mockup-desktop[src*=".svg"] {
    background: transparent !important;
    fill: currentColor;
}

/* Correção para imagens WebP */
.editable-image[src*=".webp"],
.mockup-phone[src*=".webp"],
.mockup-desktop[src*=".webp"] {
    background: transparent !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Correção para upload de imagens */
.image-preview img[src]:not([src=""]) {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

/* Correção para imagens no carrossel manager */
.slide-manager .image-preview img {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px;
}

/* Correção para imagens selecionadas */
.selected-image {
    background: transparent !important;
    outline: 3px solid #1E88E5 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 1px rgba(30, 136, 229, 0.2) !important;
}

/* Correção para imagens em loading */
.editable-image[src=""],
.mockup-phone[src=""],
.mockup-desktop[src=""] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading 1s linear infinite;
}

/* Correção para diferentes formatos de imagem */
.editable-image {
    image-rendering: auto;
    -webkit-image-smoothing: true;
    image-smoothing: smooth;
}

/* Correção para imagens em containers específicos */
.mockup-container img {
    background: transparent !important;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Correção para imagens responsivas */
@media (max-width: 768px) {
    .editable-image,
    .mockup-phone,
    .mockup-desktop {
        background: transparent !important;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Correção para imagens em modo escuro */
@media (prefers-color-scheme: dark) {
    .editable-image,
    .mockup-phone,
    .mockup-desktop {
        background: transparent !important;
        filter: none;
    }
}

/* Correção para imagens com filtros */
.editable-image:not([src*="placeholder"]):not([src*="data:image/svg"]) {
    filter: none !important;
    backdrop-filter: none !important;
    background-blend-mode: normal !important;
}

/* Garantir que imagens mantenham proporção */
.hero-carousel img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent !important;
}

/* Correção específica para o problema de fundo preto */
.inovar-modal-content img,
.media-editor img,
.carousel-manager img {
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
}

/* Estilo para imagens durante upload */
.uploading-image {
    opacity: 0.7;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.uploading-image.loaded {
    opacity: 1;
    filter: none;
}


/* Estilos para Redimensionamento de Imagem */

/* Imagem selecionada para redimensionamento */
.resize-selected {
    outline: 2px solid #1E88E5 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.2) !important;
    cursor: move !important;
}

/* Imagem durante redimensionamento */
.resizing {
    transition: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* Body durante redimensionamento */
body.resizing {
    cursor: nw-resize !important;
    user-select: none !important;
}

/* Handles de redimensionamento */
.resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1E88E5;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.resize-handle:hover {
    background: #1565C0;
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* Cursores específicos para cada handle */
.resize-handle-nw { cursor: nw-resize; }
.resize-handle-ne { cursor: ne-resize; }
.resize-handle-sw { cursor: sw-resize; }
.resize-handle-se { cursor: se-resize; }
.resize-handle-n { cursor: n-resize; }
.resize-handle-s { cursor: s-resize; }
.resize-handle-w { cursor: w-resize; }
.resize-handle-e { cursor: e-resize; }

/* Controles de redimensionamento no painel */
.resize-controls {
    animation: slideInRight 0.3s ease;
}

.resize-controls input[type="number"] {
    transition: border-color 0.2s ease;
}

.resize-controls input[type="number"]:focus {
    border-color: #1E88E5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.resize-controls button {
    transition: all 0.2s ease;
}

.resize-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.resize-controls button:active {
    transform: translateY(0);
}

/* Responsividade para controles de redimensionamento */
@media (max-width: 768px) {
    .resize-handle {
        width: 12px;
        height: 12px;
        border-width: 3px;
    }
    
    .resize-controls {
        font-size: 14px;
    }
    
    .resize-controls input[type="number"] {
        padding: 8px;
        font-size: 14px;
    }
    
    .resize-controls button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Animações para os handles */
@keyframes handlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.resize-handle.active {
    animation: handlePulse 1s infinite;
}

/* Estilo para imagem sendo redimensionada */
.editable-image.resizing {
    opacity: 0.8;
    filter: brightness(1.1);
}

/* Grid de ajuda durante redimensionamento */
.resize-grid {
    position: absolute;
    pointer-events: none;
    border: 1px dashed rgba(30, 136, 229, 0.3);
    background: rgba(30, 136, 229, 0.05);
    z-index: 9998;
}

/* Tooltip para dimensões */
.resize-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
}

/* Estilo para imagens com dimensões personalizadas */
.editable-image[style*="width"],
.editable-image[style*="height"] {
    border: 1px solid rgba(30, 136, 229, 0.2);
}

/* Indicador de que a imagem pode ser redimensionada */
.editable-image:hover {
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

/* Estilo para modo edição ativo */
.edit-mode .editable-image {
    position: relative;
}

.edit-mode .editable-image::after {
    content: '↔';
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(30, 136, 229, 0.9);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.edit-mode .editable-image:hover::after {
    opacity: 1;
}

/* Estilo para controles de proporção */
.resize-controls label {
    cursor: pointer;
    transition: color 0.2s ease;
}

.resize-controls label:hover {
    color: #1E88E5;
}

.resize-controls input[type="checkbox"] {
    accent-color: #1E88E5;
}

/* Estilo para dicas de redimensionamento */
.resize-hint {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-left: 4px solid #1E88E5;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 0 4px 4px 0;
    font-size: 11px;
    color: #666;
}

.resize-hint i {
    color: #1E88E5;
    margin-right: 5px;
}

/* Animação para controles */
@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilo para botões de ação */
.resize-controls button i {
    margin-right: 4px;
}

/* Responsividade avançada */
@media (max-width: 480px) {
    .resize-controls {
        padding: 10px;
    }
    
    .resize-controls h4 {
        font-size: 13px;
    }
    
    .resize-controls .grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .resize-handle {
        width: 14px;
        height: 14px;
    }
}

/* Estilo para imagens em carrossel durante redimensionamento */
.carousel-slide .editable-image.resize-selected {
    z-index: 1000;
    position: relative;
}

/* Prevenção de conflitos com outros elementos */
.resize-handle {
    box-sizing: border-box;
}

.resize-controls * {
    box-sizing: border-box;
}

