/* Custom Elements Styles */
.custom-element-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary), #ff5e62);
    border: 1px solid var(--secondary);
}

.custom-element-card .element-icon {
    font-size: 2.2rem;
    color: white;
    text-shadow: 0 0 5px rgba(255, 158, 0, 0.5);
}

.custom-element-card .element-name {
    color: white;
    font-weight: bold;
}

.add-custom-element-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 158, 0, 0.2);
    border: 2px dashed var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-custom-element-card:hover {
    background: rgba(255, 158, 0, 0.3);
    transform: translateY(-5px);
}

.add-custom-element-card .add-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.add-custom-element-card .add-text {
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.9rem;
}

.custom-element-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: var(--dark);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    animation: scaleIn 0.3s ease;
}

.custom-element-form.hidden {
    display: none;
}

.custom-element-form h4 {
    color: var(--secondary);
    margin-top: 0;
    text-align: center;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--light);
}

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

.icon-suggestions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.suggested-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggested-icon:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.submit-element-btn, .cancel-element-btn {
    flex: 1;
    padding: 10px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-element-btn {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
}

.cancel-element-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light);
}

.submit-element-btn:hover, .cancel-element-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.delete-custom-element {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 62, 62, 0.8);
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-element-card:hover .delete-custom-element {
    opacity: 1;
}

@keyframes scaleIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

