

        :root {
            --primary: #6366f1;
            --primary-soft: rgba(99, 102, 241, 0.1);
            --secondary: #F000B9;
            --accent: #2DD4BF;
            
            /* Background colors */
            --bg-main: #F8FAFC;
            --bg-card: #FFFFFF;
            --bg-hover: #F1F5F9;
            --bg-detail: #EFEFEF;
            
            /* Text colors */
            --text-primary: #1E293B;
            --text-secondary: #64748B;
            --text-tertiary: #94A3B8;
            
            /* Borders */
            --border-soft: rgba(30, 41, 59, 0.1);
            --border-strong: rgba(30, 41, 59, 0.2);
            
            
            /* Shadows */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(99, 101, 241, 8%);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);


            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Tema Escuro */
        :root[data-theme="dark"] {
            --primary: #6366F1;
            --primary-soft: rgba(99, 102, 241, 0.1);
            --secondary: #F000B9;
            --accent: #2DD4BF;
            
            /* Background colors */
            --bg-main: #0A0A0C;
            --bg-card: #17171A;
            --bg-hover: #1E1E24;
            --bg-detail: #30303c;
            
            /* Text colors */
            --text-primary: #FFFFFF;
            --text-secondary: #94A3B8;
            --text-tertiary: #64748B;
            
            /* Borders */
            --border-soft: rgba(255, 255, 255, 0.1);
            --border-strong: rgba(255, 255, 255, 0.2);
            
            /* Shadows */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
            --shadow-md: 0 4px 12px rgba(99, 101, 241, 35%);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        body {
            background: var(--bg-main);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: background-color var(--transition-smooth);
        }

        .margin-left-10 {
            margin-left: 10px;
        }

        .margin-right-10 {
            margin-right: 10px;
        }

        .margin-top-10 {
            margin-top: 10px;
        }

        .margin-botton-10 {
            margin-bottom: 10px;
        }

        .app-container {
            display: grid;
            grid-template-columns: 320px 1fr 320px;
            height: 100vh;
            padding-top: 64px;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 600;
            font-size: 1.25rem;
            position: relative;
        }

        .logo svg {
            width: 32px;
            height: 32px;
            color: var(--primary);
        }

        .main-container {
            padding-top: 64px; /* Espaço para o header fixo */
            min-height: 100vh;
}

.sidebar-left {
    background: var(--bg-card);
    border-right: 1px solid var(--border-soft);
    padding: 1.5rem;
    overflow-y: auto;
    position: fixed;
    width: 320px;
    height: calc(100vh - 64px);
    top: 64px;
    left: 0;
    z-index: 90;
    transition: all var(--transition-smooth);
}

.sidebar-right {
    background: var(--bg-card);
    border-left: 1px solid var(--border-soft);
    padding: 1.5rem;
    overflow-y: auto;
    position: fixed;
    width: 320px;
    height: calc(100vh - 64px);
    top: 64px;
    right: 0;
    z-index: 90;
    transition: all var(--transition-smooth);
}

.content {
    margin-left: 320px;
    margin-right: 320px;
    padding: 2rem;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-actions {
    display: flex;
    flex-direction: row;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: all var(--transition-smooth);
}

[data-theme="dark"] .app-header {
    background: rgba(10, 10, 12, 0.8);
}

.theme-toggle {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--bg-hover);
}

        .section {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            padding: 24px;
            margin-bottom: 24px;
            border: 1px solid var(--border-soft);
            transition: all var(--transition-smooth);
        }

        .section:hover {
            border-color: var(--border-strong);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        .section-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section h2 span {
            background: var(--primary);
            padding: 1px 8px;
            border-radius: var(--radius-sm);
            color: var(--bg-main);
        }

        .input-group {
            margin-bottom: 1rem;
        }

        .input-label {
            display: block;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        .input {
            background: var(--bg-hover);
            border: 1px solid var(--border-soft);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            color: var(--text-primary);
            font-size: 0.875rem;
            transition: all var(--transition-smooth);
            width: 100%;
        }

        .input:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--primary-soft);
        }

        .input-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-suffix input {
    padding-right: 32px; /* Espaço para o sufixo */
    width: 100%;
}

.suffix {
    position: absolute;
    right: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    pointer-events: none; /* Permite clicar através do sufixo */
    user-select: none; /* Impede seleção do texto */
}

/* Estiliza o input number */
input[type="number"] {
    -moz-appearance: textfield; /* Remove as setas padrão no Firefox */
}

/* Container para os spinners personalizados */
.input-spinner {
    position: relative;
    display: flex;
    align-items: center;
}

.input-spinner input[type="number"] {
    padding-right: 56px; /* Espaço para os botões + sufixo */
}

/* Estilo base para os botões de spinner */
.spinner-buttons {
    position: absolute;
    right: 32px; /* Espaço para o sufixo "px" */
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.spinner-button {
    border: none;
    background: transparent;
    cursor: pointer;
    height: 50%;
    width: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.spinner-button:hover {
    color: var(--primary);
    background: var(--accent-1);
}

.spinner-button:active {
    background: var(--accent-2);
}

/* Separa visualmente os botões */
.spinner-button:first-child {
    border-bottom: 1px solid var(--border-color);
}

/* Remove as setas padrão do input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

        .padding-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .color-input {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .color-input input[type="color"] {
            width: 42px;
            height: 42px;
            padding: 2px;
            background: var(--bg-detail);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 1rem 0;
            cursor: pointer;
            user-select: none;
        }

        .checkbox {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 36px;
            height: 20px;
            flex-shrink: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-hover);
            border: 1px solid var(--border-soft);
            transition: all var(--transition-smooth);
            border-radius: 20px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 14px;
            width: 14px;
            left: 2px;
            bottom: 2px;
            background-color: var(--text-secondary);
            transition: all var(--transition-smooth);
            border-radius: 50%;
        }

        .checkbox:checked + .toggle-slider {
            background-color: var(--primary-soft);
            border-color: var(--primary);
        }

        .checkbox:checked + .toggle-slider:before {
            transform: translateX(16px);
            background-color: var(--primary);
        }

        .checkbox-group:hover .toggle-slider:before {
            transform: scale(1.1);
        }

        .checkbox:checked:hover + .toggle-slider:before {
            transform: translateX(16px) scale(1.1);
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: var(--radius-md);
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-smooth);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.875rem;
        }

        .btn-primary {
            width: 100%;
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            filter: brightness(1.1);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .btn-secondary {
            background: var(--bg-hover);
            color: var(--text-primary);
            border: 1px solid var(--border-soft);
        }

        .btn-secondary:hover {
            background: var(--bg-card);
            border-color: var(--border-strong);
            transform: translateY(-2px);
        }

        .preview-container {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            padding: 32px;
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 24px;
            position: relative;
            transition: all var(--transition-smooth);
        }

        #characters {
            resize: none;
        }

        #previewCanvas {
            background: white;
            box-shadow: var(--shadow-md);
        }

        .toolbar {
            position: sticky;
            top: 24px;
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            border: 1px solid var(--border-soft);
            transition: all var(--transition-smooth);
            margin-bottom: 30px;
        }

        .zoom-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .upload-area {
            border: 2px dashed var(--border-soft);
            border-radius: var(--radius-lg);
            padding: 32px;
            text-align: center;
            cursor: pointer;
            transition: all var(--transition-smooth);
            background: var(--bg-hover);
            position: relative;
            overflow: hidden;
        }

        .upload-area:hover {
            border-color: var(--primary);
            transform: scale(1.02);
            background: var(--primary-soft);
        }

.file-types {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.upload-success {
    color: var(--text-primary);
}

.upload-success svg {
    color: #22c55e; /* Verde para sucesso */
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background: var(--accent-1);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.upload-content svg {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.upload-content p {
    margin: 0;
    font-size: 0.9rem;
}

.browse-btn {
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.browse-btn:hover {
    color: var(--primary-hover);
}

/* Estilos para o select */
.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

.menu-toggle {
    display: none;
}

select.input {
    appearance: none;
    padding-right: 32px;
    cursor: pointer;
}

/* Estilo para preview da fonte */
.font-preview {
    padding: 8px;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 280px 1fr 280px;
    }
    
    .sidebar-left, .sidebar-right {
        width: 280px;
    }
    
    .content {
        margin-left: 280px;
        margin-right: 280px;
    }
    .app-container {
        grid-template-columns: 280px 1fr 280px;
    }
}

        @media (max-width: 1024px) {
            .main-container {
                grid-template-columns: 280px 1fr;
            }
            .app-container {
                grid-template-columns: 280px 1fr;
            }
        }

        @media (max-width: 768px) {
            .main-container {
        grid-template-columns: 1fr;
    }

    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
    }

    .sidebar-right {
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
    }

    .sidebar-left.active,
    .sidebar-right.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        margin-right: 0;
    }

            .menu-toggle {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .app-header {
                padding: 1rem;
            }

            .content {
                padding: 1rem;
            }

            .preview-container {
                padding: 1rem;
            }
        }

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

        .fade-in {
            animation: fadeIn 0.3s ease;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .modal.active {
            display: flex;
            opacity: 1;
        }
        
        .modal-content {
            background: var(--bg-card);
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            margin: auto;
            box-shadow: var(--shadow-md);
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }
        
        .modal.active .modal-content {
            transform: translateY(0);
        }
        
        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h2 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
        }
        
        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 0.5rem;
            border-radius: 6px;
            transition: all 0.2s;
        }
        
        .close-modal:hover {
            background: var(--accent-1);
            color: var(--text-primary);
        }
        
        .modal-body {
            padding: 1.5rem;
        }
        
        .export-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
        }
        
        .export-option {
            padding: 1rem;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .export-option:hover {
            border-color: var(--primary);
            /* background: var(--bg-hover); */
        }
        
        .export-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            color: var(--primary);
        }
        
        .export-icon svg {
            width: 24px;
            height: 24px;
        }
        
        .export-info h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
        }
        
        .export-info p {
            margin: 0.25rem 0 0;
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .export-info span {
            background: var(--bg-hover);
            padding: 1px 8px;
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
        }

        .toolbar .dimensions {
            display: flex;
            align-items: center;
            gap: 16px;
            color: var(--text-muted);
            font-size: 14px;
        }
        
        .dimension-item {
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            cursor: text;
            transition: all 0.2s;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-radius: var(--radius-md);
            background: var(--bg-hover);
            color: var(--text-primary);
            border: 1px solid var(--border-soft);
        }

        .dimension-item a{
            color: var(--text-tertiary);
        }
        
        .dimension-item span {
            font-weight: 600;
            color: var(--text);
        }

        /* Badges */
        .badge {
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            font-weight: 500;
            background: var(--primary-soft);
            color: var(--primary);
        }

         /* Scroll personalizado */
         ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-main);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border-soft);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--border-strong);
        }

        .support-container {
            display: flex;
            justify-content: center;
        }
        
        .btn-coffee {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            background-color: #FFDD00;
            color: #000000;
            border-radius: var(--radius-md);
            font-weight: 600;
            text-decoration: none;
            transition: all var(--transition-smooth);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            font-size: 0.9rem;
            border: none;
        }
        
        .btn-coffee:hover {
            background-color: #FFE650;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        
        .coffee-icon {
            color: #000000;
        }
        
        [data-theme="dark"] .btn-coffee {
            background-color: #FFDD00;
            color: #000000;
        }
        
        [data-theme="dark"] .btn-coffee:hover {
            background-color: #FFE650;
        }
        
        [data-theme="dark"] .coffee-icon {
            color: #000000;
        }