/* Estilos específicos para o Editor XML de Types */

/* Estilos para a interface da ferramenta */
.tool-interface {
    margin-top: 40px;
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Área de upload */
.file-upload {
    text-align: center;
    padding: 30px;
}

.file-upload h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.4rem;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Interface do editor */
.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-filter {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.input-group, .select-group {
    position: relative;
}

.input-group input, .select-group select {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 15px 10px 40px;
    color: var(--text-color);
    width: 250px;
    font-size: 0.95rem;
}

.input-group i, .select-group i {
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Tabela de itens */
.items-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th, .items-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.items-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-color);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.items-table tbody tr {
    transition: background 0.3s ease;
}

.items-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.items-table td input[type="number"] {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--text-color);
    width: 80px;
}

.item-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 3px;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.item-actions button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.item-actions button:hover {
    color: var(--primary-color);
}

.item-actions button.delete-btn:hover {
    color: var(--danger-color);
}

/* Tutorial steps */
.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-light);
}

/* Elementos animados de fundo */
.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    z-index: -1;
}

.elem1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 5%;
    animation: float 20s infinite alternate ease-in-out;
}

.elem2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 30%;
    right: 10%;
    animation: float 15s infinite alternate-reverse ease-in-out;
}

.elem3 {
    width: 150px;
    height: 150px;
    background: #f472b6;
    bottom: 20%;
    left: 15%;
    animation: float 18s infinite alternate ease-in-out;
}

.elem4 {
    width: 250px;
    height: 250px;
    background: #3b82f6;
    bottom: 10%;
    right: 5%;
    animation: float 22s infinite alternate-reverse ease-in-out;
}

.elem5, .elem6, .elem7, .elem8 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    opacity: 0.05;
}

.elem5 {
    top: 45%;
    left: 25%;
    animation: float 12s infinite alternate ease-in-out;
}

.elem6 {
    top: 65%;
    right: 30%;
    animation: float 14s infinite alternate-reverse ease-in-out;
}

.elem7 {
    top: 15%;
    right: 25%;
    animation: float 16s infinite alternate ease-in-out;
}

.elem8 {
    bottom: 30%;
    left: 40%;
    animation: float 19s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(20px, 20px) rotate(10deg);
    }
}

/* Partículas de fundo */
.bg-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    animation: particleFloat 15s infinite linear;
}

.p1, .p2, .p3, .p4, .p5, .p6, .p7, .p8, .p9, .p10, .p11, .p12, .p13, .p14, .p15 {
    top: 10%;
    left: 10%;
}

.p2 { top: 20%; left: 20%; animation-delay: 1s; }
.p3 { top: 30%; left: 30%; animation-delay: 2s; }
.p4 { top: 40%; left: 40%; animation-delay: 3s; }
.p5 { top: 50%; left: 50%; animation-delay: 4s; }
.p6 { top: 60%; left: 60%; animation-delay: 5s; }
.p7 { top: 70%; left: 70%; animation-delay: 6s; }
.p8 { top: 80%; left: 80%; animation-delay: 7s; }
.p9 { top: 15%; left: 85%; animation-delay: 8s; }
.p10 { top: 25%; left: 75%; animation-delay: 9s; }
.p11 { top: 35%; left: 65%; animation-delay: 10s; }
.p12 { top: 45%; left: 55%; animation-delay: 11s; }
.p13 { top: 55%; left: 45%; animation-delay: 12s; }
.p14 { top: 65%; left: 35%; animation-delay: 13s; }
.p15 { top: 75%; left: 25%; animation-delay: 14s; }

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .editor-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filter {
        width: 100%;
    }
    
    .input-group input, .select-group select {
        width: 100%;
    }
    
    .tutorial-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tool-card {
        padding: 20px;
    }
    
    .file-upload, .editor-interface {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .items-table th, .items-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .items-table td input[type="number"] {
        width: 60px;
        padding: 5px 8px;
    }
    
    .item-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .tutorial-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
}
