/* Estilos para o Painel de Edição do Linktree */
.cafe-linktree-editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
    position: relative;
}

.cafe-linktree-editor {
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cafe-linktree-preview {
    position: sticky;
    top: 20px;
    height: fit-content;
    padding: 20px;
    align-self: start;
}

.cafe-linktree-preview h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.linktree-preview-container {
    border: 1px dashed #ccc;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    position: relative;
}

.linktree-preview {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
}

.editor-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.editor-section h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="color"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-group input[type="color"] {
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

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

.image-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.upload-button {
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    min-height: 44px; /* Melhor para toque em mobile */
}

.upload-button:hover {
    background-color: #f0f0f0;
}

.upload-button:active {
    transform: translateY(1px);
}

#link-items, #social-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.link-item, .social-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    flex-wrap: wrap;
}

.link-item input, .social-item input,
.link-item select, .social-item select {
    flex-grow: 1;
    min-width: 0; /* Impede que os inputs estourem o container */
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    height: 44px; /* Melhor para toque em mobile */
}

.remove-link, .remove-social {
    padding: 0.75rem 1rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    min-height: 44px; /* Melhor para toque em mobile */
    transition: background-color 0.2s ease;
}

.remove-link:hover, .remove-social:hover {
    background-color: #d32f2f;
}

.cafe-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px; /* Melhor para toque em mobile */
    font-size: 0.95rem;
}

.cafe-button-primary {
    background-color: #2563eb;
    color: white;
}

.cafe-button-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.cafe-button-primary:active {
    transform: translateY(1px);
}

.cafe-button-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.cafe-button-secondary:hover {
    background-color: #d1d5db;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Adapte os estilos da pré-visualização para corresponder ao seu frontend real */
.linktree-preview .linktree-header {
    text-align: center;
    margin-bottom: 20px;
}

.linktree-preview .linktree-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.linktree-preview .linktree-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    word-break: break-word;
}

.linktree-preview .linktree-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    word-break: break-word;
}

.linktree-preview .linktree-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.linktree-preview .linktree-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--button-color, #2563eb);
    color: var(--text-color, #ffffff);
}

.linktree-preview .linktree-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: var(--button-hover-color, #1d4ed8);
}

.linktree-preview .linktree-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.linktree-preview .linktree-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.linktree-preview .linktree-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ícones (substitua por seus ícones reais) */
.link-icon, .social-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-whatsapp { background-image: url('data:image/svg+xml;utf8,<svg...></svg>'); }
.icon-telegram { background-image: url('data:image/svg+xml;utf8,<svg...></svg>'); }

/* Estilos para a Lista de Linktrees */
.cafe-linktree-list-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cafe-linktree-list-container h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

.linktree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.linktree-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: box-shadow 0.3s ease;
}

.linktree-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.linktree-item h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    flex-grow: 1;
    margin-right: 1rem;
}

.linktree-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    flex-basis: 100%;
    margin-bottom: 1rem;
    word-break: break-all;
}

.linktree-item p a {
    color: #2563eb;
    text-decoration: none;
}

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

.linktree-item .actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

.linktree-item .actions button,
.linktree-item .actions a {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-height: 44px; /* Melhor para toque em mobile */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 44px;
}

.view-linktree {
    background-color: #4ade80;
    color: white;
}

.view-linktree:hover {
    background-color: #22c55e;
}

.copy-linktree {
    background-color: #8b5cf6;
    color: white;
}

.copy-linktree:hover {
    background-color: #7c3aed;
}

.share-linktree {
    background-color: #f59e0b;
    color: white;
}

.share-linktree:hover {
    background-color: #d97706;
}

.edit-linktree {
    background-color: #3b82f6;
    color: white;
}

.edit-linktree:hover {
    background-color: #2563eb;
}

.delete-linktree {
    background-color: #ef4444;
    color: white;
}

.delete-linktree:hover {
    background-color: #dc2626;
}

#show-create-form {
    display: block;
    width: auto;
    margin: 1.5rem auto;
    min-height: 48px;
    font-size: 1rem;
    background-color: #2563eb;
    color: white;
}

#show-create-form:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

#hide-create-form {
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 16px;
    z-index: 10;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    min-height: 44px;
}

#hide-create-form:before {
    content: "←";
    margin-right: 8px;
}

#hide-create-form:hover {
    text-decoration: underline;
}

/* Melhorias de responsividade */
@media (max-width: 1200px) {
    .cafe-linktree-editor-container {
        grid-template-columns: 1fr;
    }
    
    .cafe-linktree-preview {
        margin-top: 40px;
        position: static;
        max-width: 100%;
    }
    
    #hide-create-form {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 900px) {
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .cafe-button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cafe-linktree-editor-container,
    .cafe-linktree-list-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .cafe-linktree-editor {
        padding: 1.25rem;
    }
    
    .linktree-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .linktree-item h3 {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 100%;
    }

    .linktree-item p {
        margin-bottom: 1rem;
    }

    .linktree-item .actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    
    .linktree-item .actions button,
    .linktree-item .actions a {
        flex: 1;
        padding: 0.6rem;
        font-size: 0.85rem;
        min-width: calc(33% - 8px);
    }
    
    .editor-section h3 {
        font-size: 1.2rem;
    }
    
    .link-item, .social-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .link-item input, .social-item input,
    .link-item select, .social-item select {
        margin-bottom: 8px;
        width: 100%;
    }
    
    .remove-link, .remove-social {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .cafe-linktree-editor-container,
    .cafe-linktree-list-container {
        padding: 1rem 0.75rem;
        margin: 0.75rem;
    }
    
    .cafe-linktree-editor {
        padding: 1rem;
    }
    
    .editor-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .linktree-item .actions button,
    .linktree-item .actions a {
        font-size: 0.8rem;
        padding: 0.5rem;
        min-width: calc(50% - 4px);
    }
    
    .image-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .image-preview {
        margin-top: 10px;
    }
    
    .linktree-preview-container {
        padding: 10px;
    }
    
    .linktree-preview {
        padding: 16px;
    }
}

/* Scroll personalizado para o editor e preview */
.cafe-linktree-editor {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Melhor scroll no iOS */
}

.cafe-linktree-editor::-webkit-scrollbar {
    width: 6px;
}

.cafe-linktree-editor::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cafe-linktree-editor::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.cafe-linktree-editor::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilo para o front-end do Linktree */
.linktree-container {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linktree-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.linktree-header {
    text-align: center;
    margin-bottom: 30px;
}

.linktree-avatar {
    margin: 0 auto 20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.linktree-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linktree-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: bold;
    word-break: break-word;
}

.linktree-description {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
}

.linktree-links {
    margin-bottom: 30px;
}

.linktree-button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.linktree-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.linktree-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.linktree-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.linktree-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icon {
    font-size: 20px;
}

/* Ícones das redes sociais */
.icon-instagram { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg>'); }
.icon-facebook { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"/></svg>'); }
.icon-twitter { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg>'); }
.icon-youtube { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"/></svg>'); }
.icon-linkedin { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.98 3.5c0 1.381-1.11 2.5-2.48 2.5s-2.48-1.119-2.48-2.5c0-1.38 1.11-2.5 2.48-2.5s2.48 1.12 2.48 2.5zm.02 4.5h-5v16h5v-16zm7.982 0h-4.968v16h4.969v-8.399c0-4.67 6.029-5.052 6.029 0v8.399h4.988v-10.131c0-7.88-8.922-7.593-11.018-3.714v-2.155z"/></svg>'); }
.icon-tiktok { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"/></svg>'); }
.icon-telegram { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"/></svg>'); }
.icon-whatsapp { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>'); }
.icon-email { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm21.518 2l-9.518 7.713-9.518-7.713h19.036zm-19.518 14v-11.817l10 8.104 10-8.104v11.817h-20z"/></svg>'); }
.icon-website { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm1 16.057v-3.057h2.994c-.059 1.143-.212 2.24-.456 3.279-.823-.12-1.674-.188-2.538-.222zm1.957 2.162c-.499 1.33-1.159 2.497-1.957 3.456v-3.62c.666.028 1.319.081 1.957.164zm-1.957-7.219v-3.015c.868-.034 1.721-.103 2.548-.224.238 1.027.389 2.111.446 3.239h-2.994zm0-5.014v-3.661c.806.969 1.471 2.15 1.971 3.496-.642.084-1.3.137-1.971.165zm2.703-3.267c1.237.496 2.354 1.228 3.29 2.146-.642.234-1.311.442-2.019.607-.344-.992-.775-1.91-1.271-2.753zm-7.241 13.56c-.244-1.039-.398-2.136-.456-3.279h2.994v3.057c-.865.034-1.714.102-2.538.222zm2.538 1.776v3.62c-.798-.959-1.458-2.126-1.957-3.456.638-.083 1.291-.136 1.957-.164zm-2.994-7.055c.057-1.128.207-2.212.446-3.239.827.121 1.68.19 2.548.224v3.015h-2.994zm1.024-5.179c.5-1.346 1.165-2.527 1.97-3.496v3.661c-.671-.028-1.329-.081-1.97-.165zm-2.005-.35c-.708-.165-1.377-.373-2.018-.607.937-.918 2.053-1.65 3.29-2.146-.496.844-.927 1.762-1.272 2.753zm-.549 1.918c-.264 1.151-.434 2.36-.492 3.611h-3.933c.165-1.658.739-3.197 1.617-4.518.88.361 1.816.67 2.808.907zm.009 9.262c-.988.236-1.92.542-2.797.9-.89-1.328-1.471-2.879-1.637-4.551h3.934c.058 1.265.231 2.488.5 3.651zm.553 1.917c.342.976.768 1.881 1.257 2.712-1.223-.49-2.326-1.211-3.256-2.115.636-.229 1.299-.435 1.999-.597zm9.924 0c.7.163 1.362.367 1.999.597-.931.903-2.034 1.625-3.257 2.116.489-.832.915-1.737 1.258-2.713zm.553-1.917c.27-1.163.442-2.386.501-3.651h3.934c-.167 1.672-.748 3.223-1.638 4.551-.877-.358-1.81-.664-2.797-.9zm.501-5.651c-.058-1.251-.229-2.46-.492-3.611.992-.237 1.929-.546 2.809-.907.877 1.321 1.451 2.86 1.616 4.518h-3.933z"/></svg>'); }
.icon-other { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2 10h-2v2h2v6h3v-6h1.82l.18-2h-2v-.833c0-.478.096-.667.558-.667h1.442v-2.5h-2.5c-1.1 0-2 .9-2 2v.833z"/></svg>'); }

/* Estilos para mensagens de alerta */
.cafe-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
}

.cafe-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.cafe-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.cafe-alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Animação de fade para as mensagens */
.cafe-alert {
    transition: opacity 0.5s ease-in-out;
}

.cafe-alert.fade-out {
    opacity: 0;
}

/* Animações suaves */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.linktree-item,
.link-item,
.social-item {
    animation: fadeIn 0.3s ease-out;
}

/* Melhorias para acessibilidade em dispositivos de toque */
@media (hover: none) {
    /* Ajustes específicos para dispositivos sem hover */
    .upload-button,
    .cafe-button,
    .linktree-item .actions button,
    .linktree-item .actions a {
        padding: 12px 16px; /* Aumenta área de toque */
    }
    
    /* Reduz efeitos hover que podem causar problemas em dispositivos touch */
    .cafe-button:hover,
    .upload-button:hover {
        transform: none;
    }
    
    /* Aumenta espaçamento entre elementos interativos */
    .linktree-item .actions {
        gap: 12px;
    }
    
    /* Melhora visualização em dispositivos mobile */
    .form-group label {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}

