/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Estilos da barra lateral */
.sidebar {
    width: 320px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sidebar h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #3d5368;
}

/* Estilos das abas */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #243342;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab.active {
    background-color: #3498db;
}

.tab:hover:not(.active) {
    background-color: #34495e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Grade de componentes */
.components-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.component-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.component-btn i {
    font-size: 20px;
    margin-bottom: 8px;
}

.component-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Grade de temas */
.themes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.theme-item {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-item:hover {
    transform: scale(1.05);
}

.theme-preview {
    height: 100px;
    background-size: cover;
    background-position: top center;
}

.theme-name {
    padding: 8px;
    text-align: center;
    background-color: #34495e;
    font-size: 12px;
}

/* Grupos de configurações */
.settings-group {
    margin-bottom: 15px;
    background-color: #34495e;
    border-radius: 6px;
    padding: 15px;
}

.settings-group h3 {
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #4a6583;
    padding-bottom: 8px;
}

.settings-item {
    margin-bottom: 10px;
}

.settings-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.settings-item input,
.settings-item select,
.settings-item textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #4a6583;
    background-color: #243342;
    color: white;
}

.settings-item input[type="color"] {
    height: 35px;
}

/* Propriedades */
.properties {
    flex-grow: 1;
    margin-top: 20px;
}

.property-group {
    margin-bottom: 15px;
    background-color: #34495e;
    border-radius: 6px;
    padding: 15px;
}

.property-group h3 {
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #4a6583;
    padding-bottom: 8px;
}

.property-item {
    margin-bottom: 10px;
}

.property-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.property-item input,
.property-item select,
.property-item textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #4a6583;
    background-color: #243342;
    color: white;
}

.property-item input[type="color"] {
    height: 35px;
}

.property-item input[type="range"] {
    margin-top: 5px;
}

.range-with-value {
    display: flex;
    align-items: center;
}

.range-with-value input[type="range"] {
    flex: 1;
}

.range-value {
    margin-left: 10px;
    background-color: #243342;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

/* Área de visualização */
.preview {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.toolbar {
    background-color: #34495e;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 10px;
}

.toolbar button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.toolbar button i {
    margin-right: 5px;
}

.toolbar button:hover {
    background-color: #2980b9;
}

#export-btn {
    background-color: #2ecc71;
}

#export-btn:hover {
    background-color: #27ae60;
}

.device-selector {
    display: flex;
    background-color: #243342;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
}

.device-btn {
    padding: 8px 12px;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.device-btn.active {
    background-color: #3498db;
}

.device-btn:hover:not(.active) {
    background-color: #2c3e50;
}

#preview-area {
    flex-grow: 1;
    background-color: white;
    overflow-y: auto;
    position: relative;
}

#preview-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 100;
    display: none;
}

.preview-frame {
    min-height: 100%;
    width: 100%;
    margin: 0 auto;
    transition: width 0.3s;
}

.preview-mobile {
    max-width: 375px;
}

.preview-tablet {
    max-width: 768px;
}

.preview-desktop {
    max-width: 100%;
}

.canvas {
    min-height: 100%;
    position: relative;
    background-color: #f9f9f9;
}

.dropzone {
    padding: 20px;
    border: 2px dashed #3498db;
    margin: 10px 0;
    text-align: center;
    background-color: rgba(52, 152, 219, 0.1);
    transition: all 0.3s;
}

.dropzone.active {
    background-color: rgba(52, 152, 219, 0.3);
}

/* Elementos e suas barras de ferramentas */
.element {
    position: relative;
    margin: 5px 0;
    min-height: 40px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.element:hover {
    border: 2px solid #3498db;
}

.element.selected {
    border: 2px solid #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.element-toolbar {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    background-color: #2c3e50;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.element:hover .element-toolbar {
    opacity: 1;
}

.element-btn {
    width: 30px;
    height: 30px;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.element-btn:hover {
    background-color: #3498db;
}

.delete-btn {
    background-color: #e74c3c;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* Estilos de componentes específicos */
.hero {
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f9fa;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 12px 30px;
    font-size: 1.1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

.text-section {
    padding: 40px 20px;
    text-align: center;
}

.text-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.text-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
}

.feature {
    flex: 0 0 calc(33.333% - 40px);
    margin: 20px;
    padding: 20px;
    text-align: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 15px;
}

.feature p {
    color: #666;
}

.image-section {
    padding: 40px 20px;
    text-align: center;
    overflow: hidden;
}

.image-section h2 {
    margin-bottom: 20px;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.image-section img:hover {
    transform: scale(1.02);
}

.cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #3498db;
    color: white;
}

.cta-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background-color: white;
    color: #3498db;
}

.cta-section .cta-button:hover {
    background-color: #f5f5f5;
}

.testimonials {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    flex: 0 0 calc(33.333% - 30px);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 15px;
    background-size: cover;
    background-position: center;
}

.testimonial-info h4 {
    margin-bottom: 5px;
}

.testimonial-info p {
    color: #777;
    font-size: 0.9rem;
}

.contact-form {
    padding: 60px 20px;
    background-color: white;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
}

.submit-button {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

.pricing {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.pricing-plan {
    flex: 0 0 calc(33.333% - 30px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.pricing-header {
    padding: 20px;
    background-color: #3498db;
    color: white;
    text-align: center;
}

.pricing-popular .pricing-header {
    background-color: #2ecc71;
}

.pricing-price {
    font-size: 2.5rem;
    margin: 10px 0;
}

.pricing-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pricing-features {
    padding: 20px;
}

.pricing-feature {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-footer {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.footer {
    padding: 40px 20px;
    background-color: #2c3e50;
    color: white;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.footer-column h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #34495e;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #34495e;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
}

/* Modais */
.code-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 20px;
}

.code-preview.active {
    display: flex;
}

.code-preview h2 {
    color: white;
    margin-bottom: 20px;
}

.code-options {
    display: flex;
    margin-bottom: 15px;
}

.code-option {
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.code-option.active {
    background-color: #3498db;
}

.code-preview textarea {
    flex-grow: 1;
    background-color: #1e1e1e;
    color: #ddd;
    border: none;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    resize: none;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.code-preview .buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.code-preview button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.code-preview .download-btn {
    background-color: #2ecc71;
    color: white;
}

.code-preview .copy-btn {
    background-color: #3498db;
    color: white;
}

.code-preview .close-btn {
    background-color: #e74c3c;
    color: white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-footer button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.modal-btn-primary {
    background-color: #3498db;
    color: white;
}

.modal-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.saved-projects {
    max-height: 300px;
    overflow-y: auto;
}

.project-item {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info {
    flex-grow: 1;
}

.project-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.project-date {
    font-size: 0.8rem;
    color: #777;
}

.project-actions {
    display: flex;
}

.project-action-btn {
    width: 30px;
    height: 30px;
    background-color: #eee;
    border: none;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    transition: background-color 0.3s;
}

.project-action-btn:hover {
    background-color: #ddd;
}

.project-delete-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* Notificações */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    background-color: #2ecc71;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* Spinner de carregamento */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* Responsividade */
@media (max-width: 992px) {
    .feature, .testimonial, .pricing-plan {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: 300px;
    }
    .feature, .testimonial, .pricing-plan {
        flex: 0 0 100%;
    }
    .footer-column {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .footer-column {
        flex: 0 0 100%;
    }
}